lightkurve.KeplerTargetPixelFile.animate#

KeplerTargetPixelFile.animate(step: Optional[int] = None, interval: int = 200, **plot_args)#

Displays an interactive HTML matplotlib animation.

This feature requires a Jupyter notebook environment to display correctly.

Parameters
stepint

Spacing between frames. By default, the spacing will be determined such that 50 frames are shown, i.e. step = len(tpf) // 50. Showing more than 50 frames will be slow on many systems.

intervalint

Delay between frames in milliseconds.

**plot_argsdict

Optional parameters passed to tpf.plot().