Here\'s a minimal example to generate a plot which illustrates my question:
import matplotlib.pylab as plt import matplotlib.mpl as mpl import numpy as np
Use Axes.tick_params. As you use CB as the handle to the colorbar, the linewidth in colorbar can be set by:
Axes.tick_params
CB
CB.ax.tick_params(size = your_size, width = your_width)
size is the length of ticklines in the colorbar. width is the linewidth.
size
width