Matplotlib: Creating Colorbar
I've almost reached my goal because of the great help of this community. I explained my goal here before: matplotlib: assign color to a radius I now have exactly the plot I wanted.
This should do it:
import matplotlib as mpl
cax, _ = mpl.colorbar.make_axes(plt.gca(), shrink=0.8)
cbar = mpl.colorbar.ColorbarBase(cax, cmap='jet', label='some label',
norm=mpl.colors.Normalize(vmin=0., vmax=1.))
Result:
Post a Comment for "Matplotlib: Creating Colorbar"