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

Skip to content

Commit b4f1a4d

Browse files
authored
Merge pull request #24241 from anntzer/cft
Small animation docs/style fixes.
2 parents 231d1c8 + a810948 commit b4f1a4d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/matplotlib/animation.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,8 @@ class Animation:
840840
system notifications.
841841
842842
blit : bool, default: False
843-
Whether blitting is used to optimize drawing.
843+
Whether blitting is used to optimize drawing. If the backend does not
844+
support blitting, then this parameter has no effect.
844845
845846
See Also
846847
--------
@@ -956,7 +957,7 @@ class to use, such as 'ffmpeg'.
956957
extra_anim : list, default: []
957958
Additional `Animation` objects that should be included
958959
in the saved movie file. These need to be from the same
959-
`matplotlib.figure.Figure` instance. Also, animation frames will
960+
`.Figure` instance. Also, animation frames will
960961
just be simply combined, so there should be a 1:1 correspondence
961962
between the frames from the different animations.
962963
@@ -977,8 +978,7 @@ def func(current_frame: int, total_frames: int) -> Any
977978
978979
Example code to write the progress to stdout::
979980
980-
progress_callback =\
981-
lambda i, n: print(f'Saving frame {i} of {n}')
981+
progress_callback = lambda i, n: print(f'Saving frame {i}/{n}')
982982
983983
Notes
984984
-----
@@ -1025,9 +1025,8 @@ def func(current_frame: int, total_frames: int) -> Any
10251025

10261026
all_anim = [self]
10271027
if extra_anim is not None:
1028-
all_anim.extend(anim
1029-
for anim
1030-
in extra_anim if anim._fig is self._fig)
1028+
all_anim.extend(anim for anim in extra_anim
1029+
if anim._fig is self._fig)
10311030

10321031
# If we have the name of a writer, instantiate an instance of the
10331032
# registered class.

0 commit comments

Comments
 (0)