pyrfu.plot.colorbar module#
- pyrfu.plot.colorbar.colorbar(mappable, axis, pad: float = 0.01)[source]#
Add colorbar to ax corresponding to im.
- Parameters:
mappable (matplotlib.collections.QuadMesh) – The quadrilateral mesh mappable described by this colorbar.
axis (matplotlib.pyplot.subplotsaxes) – Axis of plot.
pad (float, Optional) – Shift the colorbar with respect to the axis.
- Returns:
cax – Colorbar added to the plot.
- Return type: