plot_spec_grid#
- mufasa.visualization.spec_viz.plot_spec_grid(cube, x, y, size=3, xsize=None, ysize=None, xlim=None, ylim=None, figsize=None, origin='lower', **kwargs)[source]#
Plot a grid of spectra from the cube centered at (x, y).
- Parameters:
cube (SpectralCube) – The spectral cube to plot.
x (int) – X-coordinate of the central pixel.
y (int) – Y-coordinate of the central pixel.
size (int, optional) – Size of the grid (must be odd). Default is 3.
xsize (int, optional) – Number of columns in the grid. Default is size.
ysize (int, optional) – Number of rows in the grid. Default is size.
xlim (tuple, optional) – X-axis limits for the plot.
ylim (tuple, optional) – Y-axis limits for the plot.
figsize (tuple, optional) – Size of the figure.
origin ({'lower', 'upper'}, optional) – Origin of the grid. Default is ‘lower’.
**kwargs (dict) – Additional keyword arguments passed to plot_spec.
- Returns:
fig (matplotlib.figure.Figure) – The figure object.
axs (numpy.ndarray of matplotlib.axes.Axes) – The array of axes objects.