salem.DataLevels.append_colorbar

DataLevels.append_colorbar(ax, position='right', size='5%', pad=0.5, **kwargs)[source]

Appends a colorbar to existing axes

It uses matplotlib’s make_axes_locatable toolkit.

Parameters:
ax: the axis to append the colorbar to
position: “left”|”right”|”bottom”|”top”
size: the size of the colorbar (e.g. in % of the ax)
pad: pad between axes given in inches or tuple-like of floats,

(horizontal padding, vertical padding)