LinearSegmentedNorm(levels, vmin=None, vmax=None, **kwargs)[source]¶
This is the default normalizer paired with
levelsare non-linearly spaced. The normalized value is linear with respect to its average index in the
levelsvector, allowing uniform color transitions across arbitrarily spaced monotonically increasing values.
It accomplishes this following the example of the
LinearSegmentedColormapsource code, by performing efficient, vectorized linear interpolation between the provided boundary levels.
Can be used by passing
norm='segments'to any command accepting
cmap. The default midpoint is zero.
levels (list of float) – The discrete data levels.
vmin, vmax (None) – Ignored, because
vmaxare set to the minimum and maximum of
**kwargs – Passed to
Normalizes data values to the range 0-1.
Inverse operation of