multicolorfits.make_norm#
- multicolorfits.make_norm(stretch='linear', vmin=None, vmax=None, a=None)[source]#
Create a matplotlib
Normalizefor display orrescale_image.- Parameters:
stretch (str) – One of the names in
stretch_functionsplus'symlog'and'symmetric_log'.'symlog'uses matplotlib’s piecewiseSymLogNorm.'symmetric_log'uses the C¹-continuouspysymlog.SymmetricLogarithmNormwhen the optionalpysymlogpackage is installed (pip install multicolorfits[pysymlog]).vmin (float or None) – Display limits. Required for signed stretches.
vmax (float or None) – Display limits. Required for signed stretches.
a (float or None) – Stretch parameter: for
symlogthis islinthreshin data units (default 1% of the display range); forsymmetric_logthis is pysymlog’sshift(default 0.1% of the range).
- Returns:
matplotlib.colors.Normalize