One could generate a vertical colorbar like so(simplified):
import matplotlib.pyplot as plt import matplotlib as mpl plt.figure() c_ax=plt.subplot(111) cb =
For some reason applying changes to the colorbar input axes (cax parameter) did not work for me.
cax
However, grabbing the axes from the colorbar object and then applying the changes worked nicely:
cb.ax.xaxis.set_ticks_position("top")