plot_dynamic_spectrum¶
Render every spectrum in ctx.spectra as one row of a 2D heatmap.
| Category | Visualisation |
| Backend | plotly - renders figures with plotly (optional extra viz) |
| Version | 1.0.0 |
| Reads | ctx.spectra (a list of Spectrum1D) |
| Writes | figures.dynamic |
All spectra are resampled to a common wavelength grid (linear, taking the intersection of their ranges) before stacking. Use this together with phase_fold or lomb_scargle for variable-star and exoplanet work.
Parameters¶
| Parameter | Default | Required | Description |
|---|---|---|---|
title |
'dynamic spectrum' |
- | Figure title. |
n_grid |
1024 |
- | Number of wavelength samples on the common grid. |
colormap |
'Viridis' |
- | Plotly colour scale name (Viridis, Cividis, Plasma…). |
Use it¶
The CLI loads a single 1-D spectrum with --input; this algorithm needs
ctx.spectra (a list of Spectrum1D). Run it from Python or as a step of a pipeline preset.
References¶
- Plotly — open-source graphing library, https://plotly.com/python/
Related algorithms¶
plot_3d_surface_plotly- Render every spectrum inctx.spectraas one row of a 3D surface.plot_animation_plotly- Render an animated Plotly figure that plays throughctx.spectra.plot_overlay_plotly- Render every spectrum inctx.spectraoverlaid on one Plotly figure.plot_spectrum_plotly- Renderctx.spectrumas a Plotly line figure.