MidpointNorm¶
-
class
MidpointNorm
(midpoint=0, vmin=None, vmax=None, clip=None)[source]¶ Bases:
matplotlib.colors.Normalize
Ensures a “midpoint” always lies at the central colormap color. Can be used by passing
norm='midpoint'
to any command acceptingcmap
. The default midpoint is zero.- Parameters
midpoint (float, optional) – The midpoint, or the data value corresponding to the normalized value
0.5
– halfway down the colormap.vmin, vmax, clip – The minimum and maximum data values, and the clipping setting. Passed to
Normalize
.
Methods Summary
__call__
(xq[, clip])Normalizes data values to the range 0-1.
inverse
(yq[, clip])Inverse operation of
__call__
.