imshow_norm¶
-
astropy.visualization.mpl_normalize.
imshow_norm
(data, ax=None, imshow_only_kwargs={}, **kwargs)[source] [edit on github]¶ A convenience function to call matplotlib’s
matplotlib.pyplot.imshow
function, using anImageNormalize
object as the normalization.Parameters: - data : 2D or 3D array-like - see
imshow
The data to show. Can be whatever
imshow
andImageNormalize
both accept.- ax : None or
Axes
If None, use pyplot’s imshow. Otherwise, calls
imshow
method of the supplied axes.- imshow_only_kwargs : dict
Arguments to be passed directly to
imshow
without first tryingImageNormalize
. This is only for keywords that have the same name in bothImageNormalize
andimshow
- if you want to set theimshow
keywords only, supply them in this dictionary.- All other keyword arguments are parsed first by the `ImageNormalize`
- initializer, then to`~matplotlib.pyplot.imshow`.
Notes
The
norm
matplotlib keyword is not supported.- data : 2D or 3D array-like - see