colorbar

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)