matplotlib.colors.Norm#
- classmatplotlib.colors.Norm[source]#
Bases:
ABCAbstract base class for normalizations.
Subclasses include
Normalizewhich maps from a scalar toa scalar. However, this class makes no such requirement, and subclasses maysupport the normalization of multiple variates simultaneously, withseparate normalization for each variate.- abstractmethod__call__(value,clip=None)[source]#
Normalize the data and return the normalized data.
- Parameters:
- value
Data to normalize.
- clipbool, optional
See the description of the parameterclip in
Normalize.If
None, defaults toself.clip(which defaults toFalse).
Notes
If not already initialized,
self.vminandself.vmaxareinitialized usingself.autoscale_None(value).
- abstractpropertyclip#
Determines the behavior for mapping values outside the range
[vmin,vmax].See theclip parameter in
Normalize.
- abstractpropertyn_components#
The number of normalized components.
This is the number of elements of the parameter to
__call__and ofvmin,vmax.
- abstractpropertyvmax#
Upper limit of the input data interval; maps to 1.
- abstractpropertyvmin#
Lower limit of the input data interval; maps to 0.