Python – Reverse colormap in matplotlib

matplotlibpython

I would like to know how to simply reverse the color order of a given colormap in order to use it with plot_surface.

Best Answer

The standard colormaps also all have reversed versions. They have the same names with _r tacked on to the end. (Documentation here.)