Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1df283 + b693532 commit f61358aCopy full SHA for f61358a
1 file changed
lib/matplotlib/animation.py
@@ -1725,11 +1725,13 @@ def _draw_frame(self, framedata):
1725
1726
# Call the func with framedata and args. If blitting is desired,
1727
# func needs to return a sequence of any artists that were modified.
1728
- self._drawn_artists = sorted(self._func(framedata, *self._args),
1729
- key=lambda x: x.get_zorder())
+ self._drawn_artists = self._func(framedata, *self._args)
1730
if self._blit:
1731
if self._drawn_artists is None:
1732
raise RuntimeError('The animation function must return a '
1733
'sequence of Artist objects.')
+ self._drawn_artists = sorted(self._drawn_artists,
1734
+ key=lambda x: x.get_zorder())
1735
+
1736
for a in self._drawn_artists:
1737
a.set_animated(self._blit)
0 commit comments