matplotlib.animation.ArtistAnimation

class matplotlib.animation.ArtistAnimation(fig, artists, *args, **kwargs) [source]

Animation using a fixed set of Artist objects.

Before creating an instance, all plotting should have taken place and the relevant artists saved.

Parameters:
figFigure

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

artistslist

Each list entry a collection of artists that represent what needs to be enabled on each frame. These will be disabled for other frames.

intervalnumber, optional

Delay between frames in milliseconds. Defaults to 200.

repeat_delaynumber, optional

If the animation in repeated, adds a delay in milliseconds before repeating the animation. Defaults to None.

repeatbool, optional

Controls whether the animation should repeat when the sequence of frames is completed. Defaults to True.

blitbool, optional

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

__init__(self, fig, artists, *args, **kwargs) [source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, fig, artists, *args, **kwargs) Initialize self.
new_frame_seq(self) Return a new sequence of frame information.
new_saved_frame_seq(self) Return a new sequence of saved/cached frame information.
save(self, filename[, writer, fps, dpi, ...]) Save the animation as a movie file by drawing every frame.
to_html5_video(self[, embed_limit]) Convert the animation to an HTML5 <video> tag.
to_jshtml(self[, fps, embed_frames, ...]) Generate HTML representation of the animation

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/_as_gen/matplotlib.animation.ArtistAnimation.html