watex.utils.plotutils.make_mpl_properties#
- watex.utils.plotutils.make_mpl_properties(n, prop='color')[source]#
make matplotlib property (‘colors’, ‘marker’, ‘line’) to fit the numer of samples
- Parameters:
n – int, Number of property that is needed to create. It generates a group of property items.
prop – str, default=’color’, name of property to retrieve. Accepts only ‘colors’, ‘marker’ or ‘line’.
- Returns:
list of property items with size equals to n.
- Example:
>>> from watex.utils.plotutils import make_mpl_properties >>> make_mpl_properties (10 ) ... ['g', 'gray', 'y', 'blue', 'orange', 'purple', 'lime', 'k', 'cyan', (0.6, 0.6, 0.6)] >>> make_mpl_properties(100 , prop = 'marker') ... ['o', '^', 'x', 'D', . . . 11, 'None', None, ' ', ''] >>> make_mpl_properties(50 , prop = 'line') ... ['-', '-', '--', '-.', . . . 'solid', 'dashed', 'dashdot', 'dotted']