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

Skip to content

Commit cddcfbe

Browse files
authored
Merge pull request #7058 from dopplershift/anim-fixes
FIX: Minor animation fixes
2 parents dcab32b + 6962dee commit cddcfbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/animation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ class ArtistAnimation(TimedAnimation):
11841184
Before calling this function, all plotting should have taken place
11851185
and the relevant artists saved.
11861186
1187-
frame_info is a list, with each list entry a collection of artists that
1187+
*artists* is a list, with each list entry a collection of artists that
11881188
represent what needs to be enabled on each frame. These will be disabled
11891189
for other frames.
11901190
'''
@@ -1205,8 +1205,8 @@ def _init_draw(self):
12051205
artist.set_visible(False)
12061206
artist.set_animated(self._blit)
12071207
# Assemble a list of unique figures that need flushing
1208-
if artist.axes.figure not in figs:
1209-
figs.add(artist.axes.figure)
1208+
if artist.get_figure() not in figs:
1209+
figs.add(artist.get_figure())
12101210

12111211
# Flush the needed figures
12121212
for fig in figs:

0 commit comments

Comments
 (0)