LineChart.get_single_color¶
-
LineChart.
get_single_color
(color_string: str) → Tuple[int, int, int, int]¶ Get single RBGA value from string
From provided string return the RGB value from to_rgba, see more details at https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.colors.to_rgba.html
- Parameters
color_string (str) – Must be a part of named colors in matplotlib https://matplotlib.org/3.1.1/gallery/color/named_colors.html#sphx-glr-gallery-color-named-colors-py
- Returns
Tuple of (r, g, b, a) scalars.
- Return type
typing.Tuple[int,int,int,int]