Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Minor animation fixes #7058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/matplotlib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ class ArtistAnimation(TimedAnimation):
Before calling this function, all plotting should have taken place
and the relevant artists saved.

frame_info is a list, with each list entry a collection of artists that
*artists* is a list, with each list entry a collection of artists that
represent what needs to be enabled on each frame. These will be disabled
for other frames.
'''
Expand All @@ -1205,8 +1205,8 @@ def _init_draw(self):
artist.set_visible(False)
artist.set_animated(self._blit)
# Assemble a list of unique figures that need flushing
if artist.axes.figure not in figs:
figs.add(artist.axes.figure)
if artist.get_figure() not in figs:
figs.add(artist.get_figure())

# Flush the needed figures
for fig in figs:
Expand Down