You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.0.0b1.post7580.dev0+ge487118
matplotlib
Fork me on GitHub

This Page

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 not None, it forces the alpha value. If c is "none" (case-insensitive) or an empty list, an empty array is returned.