### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- `animation` module »

# 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`.

  See also

  `FuncAnimation`, `ArtistAnimation`

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