parsnip.plot_spectra

parsnip.plot_spectra(light_curve, model, times=[0.0, 10.0, 20.0, 30.0], flux_scale=1.0, ax=None, sncosmo_model=None, sncosmo_label='SNCosmo Model', spectrum_label_offset=0.2)

Plot the spectral time series of a light curve predicted by a ParSNIP model

Parameters:
  • light_curve (Table) – Light curve

  • model (ParsnipModel) – Model to use for the predictions

  • times (list, optional) – Times to predict the spectra at, by default [0., 10., 20., 30.]

  • flux_scale (float, optional) – Scale to multiple the flux by, by default 1.

  • ax (axis, optional) – Matplotlib axis, by default None

  • sncosmo_model (Model, optional) – SNCosmo model to overplot, by default None

  • sncosmo_label (str, optional) – Label for the SNCosmo model, by default ‘SNCosmo Model’

  • spectrum_label_offset (float, optional) – Offset of the time labels for each spectrum, by default 0.2