matplotlib.pyplot.
get_cmap
(name=None, lut=None)¶Get a colormap instance, defaulting to rc values if name is None.
Colormaps added with register_cmap()
take precedence over
built-in colormaps.
If name is a matplotlib.colors.Colormap
instance, it will be
returned.
If lut is not None it must be an integer giving the number of entries desired in the lookup table, and name must be a standard mpl colormap name.