parsnip.plot_spectrum
- parsnip.plot_spectrum(light_curve, model, time, count=100, show_uncertainty_bands=True, percentile=68, ax=None, c=None, label=None, offset=None, normalize_flux=False, normalize_min_wave=5500.0, normalize_max_wave=6500.0, spectrum_label=None, spectrum_label_wave=7500.0, spectrum_label_offset=0.2, flux_scale=1.0)
Plot the spectrum of a light curve predicted by a ParSNIP model
- Parameters:
light_curve (
Table) – Light curvemodel (
ParsnipModel) – Model to use for the predictiontime (float) – Time to predict the spectrum at
count (int, optional) – Number of spectra to sample, by default 100
show_uncertainty_bands (bool, optional) – Whether to show uncertainty bands, by default True
percentile (int, optional) – Percentile for the uncertainty bands, by default 68
ax (axis, optional) – Matplotlib axis to use, by default None
c (str, optional) – Color for the plot, by default None
label (str, optional) – Label for the plot, by default None
offset (float, optional) – Constant offset to add to the flux for plotting, by default None
normalize_flux (bool, optional) – Whether to normalize the flux, by default False
normalize_min_wave (float, optional) – Minimum wavelength of the normalization window, by default 5500.
normalize_max_wave (float, optional) – Maximum wavelength of the normalization window, by default 6500.
spectrum_label (str, optional) – Label to plot near the spectrum, by default None
spectrum_label_wave (float, optional) – Wavelength to plot the spectrum label at, by default 7500.
spectrum_label_offset (float, optional) – Y offset for the spectrum label, by default 0.2
flux_scale (float, optional) – Scale to multiply the flux by, by default 1.