Norm

Norm(norm, *args, **kwargs)[source]

Return an arbitrary Normalize instance. Used to interpret the norm and norm_kw arguments when passed to any plotting method wrapped by cmap_changer. See this tutorial for more info.

Parameters

norm (str or Normalize) – The normalizer specification. If a Normalize instance already, the input argument is simply returned. Otherwise, norm should be a string corresponding to one of the “registered” colormap normalizers (see below table).

If norm is a list or tuple and the first element is a “registered” normalizer name, subsequent elements are passed to the normalizer class as positional arguments.

Key(s)

Class

'null', 'none'

NoNorm

'diverging', 'div'

DivergingNorm

'segmented'

LinearSegmentedNorm

'linear'

Normalize

'log'

LogNorm

'power'

PowerNorm

'symlog'

SymLogNorm

Other Parameters

*args, **kwargs – Passed to the Normalize initializer.

Returns

Normalize – A Normalize instance.