set_colorbar_limits
- typhon.plots.set_colorbar_limits(cb, vmin=-1, vmax=1)[source]
Set colorbar limits.
Note
The normalization of the
ScalarMappable
is not affected.- Parameters:
cb (matplotlib.colorbar.Colorbar) – Colorbar to center.
vmin (float) – Lower limit of the colorbar axis.
vmax (float) – Upper limit of the colorbar axis.
See also
center_colorbar()
Center a diverging colorbar.