SequenceAnimator#
- class ndcube.visualization.mpl_sequence_plotter.SequenceAnimator(
- sequence,
- sequence_axis_coords=None,
- sequence_axis_unit=None,
- **kwargs,
Bases:
ArrayAnimatorWCSAnimate an NDCubeSequence of NDCubes with >1 dimension.
The sequence axis is always set as a sliders axis. All kwargs are passed to
ndcube.NDCube.plot. The bulk of the plotting work is performed byndcube.NDCube.plotwhich is assumed to exist and to call a matplotlib-based animator.- Parameters:
sequence (
NDCubeSequence) – The sequence to animate.sequence_axis_coords (
stror array-like, optional) – The real world value of each step along the sequence axis. Ifstr, the values are taken fromndcube.NDCubeSequence.sequence_axis_coords.sequence_axis_unit (
strorastropy.units.Unit, optional) – The unit in which to display the sequence_axis_coords.