I would like to know how to change the font size of ticks of ColorbarBase
of matplotlib
. The following lines are a relevant part in my analysis script, in which ColorbarBase
is used.
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm
import matplotlib as mpl
axcb = fig.add_axes([0.9, 0.135, 0.02, 0.73])
cb = mpl.colorbar.ColorbarBase(axcb, norm=LogNorm(vmin=7e-5, vmax=1), cmap=plt.cm.CMRmap)
cb.set_label("Relative Photon Intensity", labelpad=-1, size=14)
I am using matplotlib
ver 1.4.3 with Python 2.7 on OS X.