get_spec_grid#

mufasa.visualization.spec_viz.get_spec_grid(size=3, xsize=None, ysize=None, figsize=None)[source]#

Create a grid of subplots for spectra.

Parameters:
  • 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.

  • figsize (tuple, optional) – Size of the figure.

Returns:

  • fig (matplotlib.figure.Figure) – The figure object.

  • axs (numpy.ndarray of matplotlib.axes.Axes) – The array of axes objects.