Matplotlib: Creating Colorbar May 22, 2024 Post a Comment 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.Solution 1: 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.)) CopyResult: Share Post a Comment for "Matplotlib: Creating Colorbar"
Post a Comment for "Matplotlib: Creating Colorbar"