Data Visualization (astropy.visualization
)¶
Introduction¶
astropy.visualization
provides functionality that can be helpful when
visualizing data. This includes a framework for plotting Astronomical images
with coordinates with Matplotlib (previously the standalone wcsaxes
package), functionality related to image normalization (including both scaling
and stretching), smart histogram plotting, RGB color image creation from
separate images, and custom plotting styles for Matplotlib.
Using astropy.visualization
¶
Scripts¶
This module includes a command-line script, fits2bitmap
to convert FITS
images to bitmaps, including scaling and stretching of the image. To find out
more about the available options and how to use it, type:
$ fits2bitmap --help
Reference/API¶
astropy.visualization Package¶
Functions¶
|
Enhanced histogram function |
|
A convenience function to call matplotlib's |
|
Return a Red/Green/Blue color image from up to 3 images using an asinh stretch. |
|
Enable support for plotting |
|
Return a Normalization class that can be used for displaying images with Matplotlib. |
|
Enable support for plotting |
Classes¶
|
An asinh stretch. |
|
Interval based on a keeping a specified fraction of pixels (can be asymmetric). |
Base class for the interval classes, which, when called with an array of values, return an interval computed following different algorithms. |
|
Base class for the stretch classes, which, when called with an array of values in the range [0:1], return an transformed array of values, also in the range [0:1]. |
|
A transformation object. |
|
|
A combination of two stretches. |
|
A combination of two transforms. |
|
A stretch that takes into account contrast and bias. |
|
A histogram equalization stretch. |
|
Normalization class to be used with Matplotlib. |
|
A linear stretch with a slope and offset. |
|
A log stretch. |
|
Interval based on user-specified values. |
Interval based on the minimum and maximum values in the data. |
|
|
Interval based on a keeping a specified fraction of pixels. |
|
An alternative power stretch. |
|
A power stretch. |
|
A sinh stretch. |
A square root stretch. |
|
A convenience class for a power stretch of 2. |
|
|
Interval based on IRAF's zscale. |
Class Inheritance Diagram¶
astropy.visualization.mpl_normalize Module¶
Normalization class for Matplotlib that can be used to produce colorbars.
Functions¶
|
Return a Normalization class that can be used for displaying images with Matplotlib. |
|
A convenience function to call matplotlib's |
Classes¶
|
Normalization class to be used with Matplotlib. |