plot_animation_plotly¶
Render an animated Plotly figure that plays through ctx.spectra.
| Category | Visualisation |
| Backend | plotly - renders figures with plotly (optional extra viz) |
| Version | 1.0.0 |
| Reads | ctx.spectra (a list of Spectrum1D) |
| Writes | figures.animation |
Parameters¶
| Parameter | Default | Required | Description |
|---|---|---|---|
title |
'stacked spectra — animation' |
- | Figure title. |
frame_duration_ms |
600 |
- | Milliseconds each frame is displayed. |
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 — https://plotly.com/python/animations/
Related algorithms¶
plot_3d_surface_plotly- Render every spectrum inctx.spectraas one row of a 3D surface.plot_dynamic_spectrum- Render every spectrum inctx.spectraas one row of a 2D heatmap.plot_overlay_plotly- Render every spectrum inctx.spectraoverlaid on one Plotly figure.plot_spectrum_plotly- Renderctx.spectrumas a Plotly line figure.