scisalt.matplotlib.colorbar¶
-
scisalt.matplotlib.colorbar(ax, im, fig=None, loc='right', size='5%', pad='3%')[source]¶ Adds a polite colorbar that steals space so
matplotlib.pyplot.tight_layoutworks nicely.New in version 1.3.
Parameters: ax :
matplotlib.axis.AxisThe axis to plot to.
im :
matplotlib.image.AxesImageThe plotted image to use for the colorbar.
fig :
matplotlib.figure.Figure, optionalThe figure to plot to.
loc : str, optional
The location to place the axes.
size : str, optional
The size to allocate for the colorbar.
pad : str, optional
The amount to pad the colorbar.