Fix Python – Reverse colormap in matplotlib


Asked By – Mermoz

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

Now we will see solution for issue: Reverse colormap in matplotlib


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

This question is answered By – ptomato

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0