mplutils.set_colorbar_thickness#

mplutils.set_colorbar_thickness(colorbar, thickness, unit='pts')[source]#

Adjust thickness of a colorbar.

Parameters:
colorbarmatplotlib.colorbar.Colorbar or matplotlib.axes.Axes

Colorbar or axes that contains the colorbar.

thicknessfloat

Desired thickness in units of unit.

unit{"mm" , "inch" , "pts"}, default "pts"

Unit of thickness.