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

Skip to content

Commit ce9737d

Browse files
author
jdollichon
committed
Added API change note and docs
1 parent c100485 commit ce9737d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
`.FuncAnimation` now draws artists according to their zorder when blitting
2+
--------------------------------------------------------------------------
3+
4+
`.FuncAnimation` now draws artists returned by the user-
5+
function according to their zorder when using blitting,
6+
instead of using the order in which they are being passed.
7+
However, note that only zorder of passed artists will be
8+
respected, as they are drawn on top of any existing artists
9+
(see `#11369 <https://github.com/matplotlib/matplotlib/issues/11369>`_).

lib/matplotlib/animation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,8 +1607,10 @@ def init_func() -> iterable_of_artists:
16071607
of frames is completed. Defaults to ``True``.
16081608
16091609
blit : bool, optional
1610-
Controls whether blitting is used to optimize drawing. Defaults
1611-
to ``False``.
1610+
Controls whether blitting is used to optimize drawing. Note: when using
1611+
blitting any animated artists will be drawn according to their zorder.
1612+
However, they will be drawn on top of any previous artists, regardless
1613+
of their zorder. Defaults to ``False``.
16121614
16131615
'''
16141616
def __init__(self, fig, func, frames=None, init_func=None, fargs=None,

0 commit comments

Comments
 (0)