plot_model#
- mufasa.visualization.spec_viz.plot_model(para, model_func, xarr, ax, ncomp, **kwargs)[source]#
Plot a model fit for a spectrum.
- Parameters:
para (numpy.ndarray) – The parameter array for the model.
model_func (function) – The model function to use for the fit.
xarr (SpectroscopicAxis) – The spectroscopic axis for the x-axis.
ax (matplotlib.axes.Axes) – Axes object to plot on.
ncomp (int) – The number of components in the model.
**kwargs (dict) – Additional keyword arguments passed to plot_spec.