Spectral-cube is not primarily a visualization package, but it has several tools for visualizing subsets of the data.
All lower-dimensional subsets,
Projection, have their own
respectively). These methods will plot the data with somewhat properly labeled
The two-dimensional viewers default to using aplpy.
Because of quirks of how aplpy sets up its plotting window, these methods will
create their own figures. If
use_aplpy is set to
False, and similarly
if you use the
OneDSpectrum quicklook, the data will be overplotted in the
latest used plot window.
In principle, one can also simply plot the data. For example, if you have a cube, you could do:
to plot a spectrum sliced out of the cube or:
to plot an image slice.
There are known incompatibilities with the above plotting approach:
<2.1 will crash, and you will have to clear the plot
window to reset it.
Other Visualization Tools¶
To visualize the cubes directly, you can use some of the other tools we provide for pushing cube data into external viewers.
See Visualizing spectral cubes with yt for using yt as a visualization tool.