matplotlib.colors.
to_rgba_array
Convert c to a (n, 4) array of RGBA colors.
If alpha is not None, it forces the alpha value. If c is "none" (case-insensitive) or an empty list, an empty array is returned.
None
"none"