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

Skip to content

Commit 51cc0ca

Browse files
committed
MNT: set animated to blit state
1 parent c75f75d commit 51cc0ca

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
@@ -975,7 +975,7 @@ def _init_draw(self):
975975
for f in self.new_frame_seq():
976976
for artist in f:
977977
artist.set_visible(False)
978-
artist.set_animated(True)
978+
artist.set_animated(self._blit)
979979
# Assemble a list of unique axes that need flushing
980980
if artist.axes.figure not in figs:
981981
figs.add(artist.axes.figure)
@@ -1095,7 +1095,7 @@ def _init_draw(self):
10951095
else:
10961096
self._drawn_artists = self._init_func()
10971097
for a in self._drawn_artists:
1098-
a.set_animated(True)
1098+
a.set_animated(self._blit)
10991099

11001100
def _draw_frame(self, framedata):
11011101
# Save the data for potential saving of movies.
@@ -1109,4 +1109,4 @@ def _draw_frame(self, framedata):
11091109
# func needs to return a sequence of any artists that were modified.
11101110
self._drawn_artists = self._func(framedata, *self._args)
11111111
for a in self._drawn_artists:
1112-
a.set_animated(True)
1112+
a.set_animated(self._blit)

0 commit comments

Comments
 (0)