multicolorfits.make_norm#

multicolorfits.make_norm(stretch='linear', vmin=None, vmax=None, a=None)[source]#

Create a matplotlib Normalize for display or rescale_image.

Parameters:
  • stretch (str) – One of the names in stretch_functions plus 'symlog' and 'symmetric_log'. 'symlog' uses matplotlib’s piecewise SymLogNorm. 'symmetric_log' uses the C¹-continuous pysymlog.SymmetricLogarithmNorm when the optional pysymlog package 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 symlog this is linthresh in data units (default 1% of the display range); for symmetric_log this is pysymlog’s shift (default 0.1% of the range).

Returns:

matplotlib.colors.Normalize