【发布时间】:2018-07-11 15:33:38
【问题描述】:
如何获取这些示例 cdict 值 (https://matplotlib.org/2.0.1/examples/pylab_examples/custom_cmap.html):
cdict = {'red': ((0.0, 0.0, 0.0),
(0.5, 1.0, 1.0),
(1.0, 1.0, 1.0)),
'green': ((0.0, 0.0, 0.0),
(0.25, 0.0, 0.0),
(0.75, 1.0, 1.0),
(1.0, 1.0, 1.0)),
'blue': ((0.0, 0.0, 0.0),
(0.5, 0.0, 0.0),
(1.0, 1.0, 1.0))}
对于 matplotlib 中的 bwr 配色方案 (https://matplotlib.org/examples/color/colormaps_reference.html)?
【问题讨论】:
-
bwr只是蓝白红。也许你想告诉你需要这些做什么,我怀疑这是xyproblem? -
我想创建一个类似于 bwr 但中间白色部分范围更广的自定义配色方案。
标签: python matplotlib