views:

108

answers:

2

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

+2  A: 

If the colormap is a list then you can reverse it with:

colormap[::-1]
compie
+2  A: 

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

ptomato