colorbar

作者: 榴莲气象 | 来源:发表于2019-01-02 19:09 被阅读8次

Set Matplotlib colorbar size to match graph

image.png

Rotation of colorbar tick labels in matplotlib

cbar.ax.set_xticklabels(clevs1[::1],rotation=90)

https://matplotlib.org/examples/pylab_examples/contourf_demo.html

image.png

extendrect bool
If False the minimum and maximum colorbar extensions
will be triangular (the default). If True the
extensions will be rectangular.
cb = plt.colorbar(t_contour, extendfrac=1/3, extendrect=True,shrink=0.5,pad=0.1)

image.png

相关文章

网友评论

      本文标题:colorbar

      本文链接:https://www.haomeiwen.com/subject/wotjlqtx.html