Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2a33d6e

Browse filesBrowse files
dopplershifttacaswell
authored andcommitted
Merge pull request #7058 from dopplershift/anim-fixes
FIX: Minor animation fixes Also backport 4cb15ef which was accidentally pushed to master
1 parent b152ff9 commit 2a33d6e
Copy full SHA for 2a33d6e

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ class ArtistAnimation(TimedAnimation):
10811081
Before calling this function, all plotting should have taken place
10821082
and the relevant artists saved.
10831083
1084-
frame_info is a list, with each list entry a collection of artists that
1084+
*artists* is a list, with each list entry a collection of artists that
10851085
represent what needs to be enabled on each frame. These will be disabled
10861086
for other frames.
10871087
'''
@@ -1101,11 +1101,11 @@ def _init_draw(self):
11011101
for artist in f:
11021102
artist.set_visible(False)
11031103
artist.set_animated(self._blit)
1104-
# Assemble a list of unique axes that need flushing
1105-
if artist.axes.figure not in figs:
1106-
figs.add(artist.axes.figure)
1104+
# Assemble a list of unique figures that need flushing
1105+
if artist.get_figure() not in figs:
1106+
figs.add(artist.get_figure())
11071107

1108-
# Flush the needed axes
1108+
# Flush the needed figures
11091109
for fig in figs:
11101110
fig.canvas.draw_idle()
11111111

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.