BubbleChart.get_colors

BubbleChart.get_colors(cmap: Union[matplotlib.colors.Colormap, str, List[str]]) → List[str]

Get colours for plotting data

Parameters

cmap (typing.Union[colors.Colormap,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

Raises
  • ValueError – If no supported colors are found

  • TypeError – Type of colors is not supported

Returns

Returns list of RGB values for colors as strings

Return type

typing.List[str]