matplotlib.colors
matplotlib.colors.to_rgba
matplotlib.colors.
to_rgba
Convert c to an RGBA color.
c : Matplotlib color
alpha : scalar, optional
If alpha is not None, it forces the alpha value, except if c is "none" (case-insensitive), which always maps to (0, 0, 0, 0).
None
"none"
(0, 0, 0, 0)
tuple
Tuple of (r, g, b, a) scalars.
(r, g, b, a)
List of named colors
Line, Poly and RegularPoly Collection with autoscaling
Line Collection
Lasso Demo
Ribbon Box
Menu