在matplotlib contourf plot

时间:2016-05-11 15:14:30

标签: python matplotlib

我尝试使用matplotlib.pyplot.contourf实现域着色。除了如何更改单个z值的alpha之外,我已经弄明白了。经过广泛的文档研究后,我仍然无法找到答案。可以这样做还是应该使用其他方法?

1 个答案:

答案 0 :(得分:0)

如果您使用自定义色彩映射,则可以根据z引入Alpha值的自定义变体。这个http://matplotlib.org/examples/pylab_examples/custom_cmap.html是使用LinearSegmentedColormap。

的官方示例