ImageNormalize¶
-
class
astropy.visualization.ImageNormalize(data=None, interval=None, vmin=None, vmax=None, stretch=<astropy.visualization.stretch.LinearStretch object>, clip=True)[source]¶ Bases:
matplotlib.colors.NormalizeNormalization class to be used with Matplotlib.
Parameters: - data :
ndarray, optional The image array. This input is used only if
intervalis also input.dataandintervalare used to compute the vmin and/or vmax values only ifvminorvmaxare not input.- interval :
BaseIntervalsubclass instance, optional The interval object to apply to the input
datato determine thevminandvmaxvalues. This input is used only ifdatais also input.dataandintervalare used to compute the vmin and/or vmax values only ifvminorvmaxare not input.- vmin, vmax : float
The minimum and maximum levels to show for the data. The
vminandvmaxinputs override any calculated values from theintervalanddatainputs.- stretch :
BaseStretchsubclass instance, optional The stretch object to apply to the data. The default is
LinearStretch.- clip : bool, optional
If
True(default), data values outside the [0:1] range are clipped to the [0:1] range.
Methods Summary
__call__(values[, clip])Normalize value data in the [vmin, vmax]interval into the[0.0, 1.0]interval and return it.inverse(values)Methods Documentation
- data :