class matplotlib.colors.ListedColormap(colors, name='from_list', N=None)
[source]
Bases: matplotlib.colors.Colormap
Colormap object generated from a list of colors.
This may be most useful when indexing directly into a colormap, but it can also be used to generate special colormaps for ordinary mapping.
Parameters: |
|
---|
reversed(self, name=None)
[source]
Make a reversed instance of the Colormap.
Parameters: |
|
---|---|
Returns: |
|
matplotlib.colors.ListedColormap
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.colors.ListedColormap.html