mplutils.set_colorbar_pad#

mplutils.set_colorbar_pad(colorbar, pad, unit='pts')[source]#

Adjust padding between a colorbar and its parent axes.

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

Colorbar or axes that contains the colorbar.

padfloat

Desired padding in units of unit.

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

Unit of pad.