I cannot get the colorbar
on imshow
graphs like this one to be the same height as the graph, short of using Photoshop after the fact. How do I get the heights to match?
这种组合(以及接近这些的值)似乎对我来说“神奇地”起作用,无论显示器的尺寸如何,都可以使颜色条缩放到绘图。
plt.colorbar(im,fraction=0.046, pad=0.04)
它也不需要共享轴,否则会使绘图不规则。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)