【问题标题】:Custom limits colormap matplotlib自定义限制颜色图 matplotlib 【发布时间】:2017-02-26 21:38:49 【问题描述】: 这些是我的attempts,用于执行以下操作。 颜色图应从零开始并以最大值结束。两种颜色之间的临界点应为 1,0。现在大多数点都是红色的,这是不希望的。 我试过了: cbar.set_clim(0.0, 2.0) This 是我想要的颜色图。 【问题讨论】: 标签: python matplotlib colormap 【解决方案1】: 已经有一些关于此的问题,但我不确定将哪一个标记为重复: Defining the midpoint of a colormap in matplotlib Shifted colorbar matplotlib Matplotlib imshow - 'speed up' colour change in certain value ranges Defining the midpoint of a colormap in matplotlib 【讨论】: