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.
1 parent 6ec80ea commit 664ab81Copy full SHA for 664ab81
1 file changed
lib/matplotlib/animation.py
@@ -1723,7 +1723,7 @@ def _draw_frame(self, framedata):
1723
1724
# Call the func with framedata and args. If blitting is desired,
1725
# func needs to return a sequence of any artists that were modified.
1726
- self._drawn_artists = self._func(framedata, *self._args)
+ self._drawn_artists = sorted(self._func(framedata, *self._args), key=lambda x: x.get_zorder())
1727
if self._blit:
1728
if self._drawn_artists is None:
1729
raise RuntimeError('The animation function must return a '
0 commit comments