在 matplotlib 中反转颜色图 [英] Reverse colormap in matplotlib
本文介绍了在 matplotlib 中反转颜色图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何简单地反转给定颜色图的颜色顺序,以便将其与 plot_surface 一起使用.
I would like to know how to simply reverse the color order of a given colormap in order to use it with plot_surface.
推荐答案
标准颜色图也都有反转版本.它们具有相同的名称,并在末尾添加了 _r
.(此处的文档.)
The standard colormaps also all have reversed versions. They have the same names with _r
tacked on to the end. (Documentation here.)
这篇关于在 matplotlib 中反转颜色图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文