Usage: pgkyl plotly_animate [OPTIONS]
Build a Plotly animation figure from a sequence of datasets.
Renders the first dataset with :func:`plotly` to create the base figure, then renders
every subsequent dataset as an animation frame, wiring up Play/Pause buttons and a
frame slider. All datasets must produce the same number of traces.
Like :func:`plotly`, ``save``/``saveas``/``show`` are self-sufficient here with zero
CLI glue: ``show=True`` opens the animation (a plain HTML preview -- the frame slider
is its own scrubber, so unlike :func:`plotly` this never rotates the camera on save)
in the browser; both default to inert, so a bare call just builds and returns the
figure (see :func:`plotly`'s docstring for why). The per-frame :func:`plotly` calls
below always render with ``save=False, show=False``: only *this* function's own
save/preview, on the assembled animation, should ever hit disk or a browser tab.
Options:
-f, --frame_labels TEXT OR JSON ARRAY
Optional label for each frame and slider step.
--frame_duration INTEGER Duration of each animation frame in milliseconds.
[default: 50]
-t, --transition_duration INTEGER
Duration of transitions between frames. [default: 0]
--from_start [BOOLEAN] Start playback from the first rather than current
slider frame. [default: False]
-n, --no_redraw [BOOLEAN] Do not redraw traces between frames. [default: False]
-s, --save [BOOLEAN] Save the animation as ``plotly_animate.html``.
[default: False]
--saveas TEXT Explicit HTML output path.
--show [BOOLEAN] Open the animation in a browser. [default: False]
--help Show this message and exit.