Reverse colormap in matplotlib

前端 未结 7 806
小蘑菇
小蘑菇 2020-11-28 02:04

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

7条回答
  •  半阙折子戏
    2020-11-28 02:43

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

提交回复
热议问题