I have a Basemap and I want to manually add a colorbar to the side. As you can see in the attached image, the colorbar is not correctly positioned.
Here is a snippet of code
m = Basemap(resolution=‘c’,projection=‘cyl’,lon_0=0,ax=ax)
cax = fig.add_axes([0.9, 0.1, 0.1, 0.8]) # setup colorbar axes.
cmap = mpl.cm.cool
norm = mpl.colors.Normalize(vmin=5, vmax=10)
cb1 = mpl.colorbar.ColorbarBase(cax, cmap=cmap,
what am I doing wrong?