BarChartRace.get_colors¶
-
BarChartRace.
get_colors
(cmap: Union[str, matplotlib.colors.Colormap, List[str]]) → numpy.array[source]¶ Get array of colours from BaseChart.get_colors and shorten to number of bars
- Parameters
cmap (typing.Union[str, colors.Colormap, typing.List[str]]) – Provide string of colormap name, colormap instance, single color instance or list of colors as supported by https://matplotlib.org/2.0.2/api/colors_api.html
- Returns
Numpy Array of colors as strings
- Return type
np.array