Set Matplotlib colorbar size to match graph
image.pngRotation of colorbar tick labels in matplotlib
cbar.ax.set_xticklabels(clevs1[::1],rotation=90)
https://matplotlib.org/examples/pylab_examples/contourf_demo.html
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)
网友评论