matplotlib.colors.to_rgba_array
-
matplotlib.colors.to_rgba_array(c, alpha=None)
-
Convert
c
to a (n, 4) array of RGBA colors.If
alpha
is notNone
, it forces the alpha value. Ifc
is “none” (case-insensitive) or an empty list, an empty array is returned.
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.colors.to_rgba_array.html