matplotlib


Travis-CI:

This Page

matplotlib.animation.Animation

class matplotlib.animation.Animation(fig, event_source=None, blit=False)

This class wraps the creation of an animation using matplotlib.

It is only a base class which should be subclassed to provide needed behavior.

This class is not typically used directly.

Parameters:

fig : matplotlib.figure.Figure

The figure object that is used to get draw, resize, and any other needed events.

event_source : object, optional

A class that can run a callback when desired events are generated, as well as be stopped and started.

Examples include timers (see TimedAnimation) and file system notifications.

blit : bool, optional

controls whether blitting is used to optimize drawing. Defaults to False.

__init__(fig, event_source=None, blit=False)