O'Reilly logo
  • Majid Hussain thinks this is interesting:

ListedColormap

Note

From matplotlib.colors library imported above.

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.

Make a colormap from a list of colors.