FPS#

class FPS(*v, fig=None, display=None, embed=None, filename=None, dpi=None, fps=None, metadata=None, **kw)#

Bases: FPS

Enhanced FPS with display and movie capabilities.

Parameters:
  • display (Figure | None) –

    If this is provided, then after each iteration, we will call:

    IPython.display.display(self.display) IPython.display.clear_output(wait=True)

    If provided, then this will also be used for fig.

  • fig (Figure, None) – Must be provided if any sort of movie is going to be produced. If display is provided, then it will be used as fig if fig is None.

  • filename (str) – Filename for movie. If provided, then a movie will be produced and saved here.

  • embed (bool) – If True, then a movie will be embedded and displayed with IPython.display.display. If filename is provided, then the movie will be generated there, otherwise, it will be placed in a tempdir.

  • fps (float) – Framerate. If provided, this will overload max_fps.

__init__(*v, fig=None, display=None, embed=None, filename=None, dpi=None, fps=None, metadata=None, **kw)#

Methods

__init__(*v[, fig, display, embed, ...])

Attributes

VIDEO_TAG

tics

MovieWriter#

alias of FFMpegFileWriter

__str__()#

Delegate to self._frames if it exists.