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

Skip to content

Commit 4f9ac38

Browse files
authored
Merge pull request #23370 from anntzer/a
Small cleanups to animation.
2 parents 246b6a0 + 3229acf commit 4f9ac38

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

lib/matplotlib/animation.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,9 @@
4444
_log = logging.getLogger(__name__)
4545

4646
# Process creation flag for subprocess to prevent it raising a terminal
47-
# window. See for example:
48-
# https://stackoverflow.com/q/24130623/
49-
if sys.platform == 'win32':
50-
subprocess_creation_flags = CREATE_NO_WINDOW = 0x08000000
51-
else:
52-
# Apparently None won't work here
53-
subprocess_creation_flags = 0
47+
# window. See for example https://stackoverflow.com/q/24130623/
48+
subprocess_creation_flags = (
49+
subprocess.CREATE_NO_WINDOW if sys.platform == 'win32' else 0)
5450

5551
# Other potential writing methods:
5652
# * http://pymedia.org/

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -768,12 +768,18 @@
768768
#animation.bitrate: -1 # Controls size/quality trade-off for movie.
769769
# -1 implies let utility auto-determine
770770
#animation.frame_format: png # Controls frame format used by temp files
771-
#animation.ffmpeg_path: ffmpeg # Path to ffmpeg binary. Without full path
772-
# $PATH is searched
773-
#animation.ffmpeg_args: # Additional arguments to pass to ffmpeg
774-
#animation.convert_path: convert # Path to ImageMagick's convert binary.
775-
# On Windows use the full path since convert
776-
# is also the name of a system tool.
777-
#animation.convert_args: # Additional arguments to pass to convert
771+
772+
## Path to ffmpeg binary. Unqualified paths are resolved by subprocess.Popen.
773+
#animation.ffmpeg_path: ffmpeg
774+
## Additional arguments to pass to ffmpeg.
775+
#animation.ffmpeg_args:
776+
777+
## Path to ImageMagick's convert binary. Unqualified paths are resolved by
778+
## subprocess.Popen, except that on Windows, we look up an install of
779+
## ImageMagick in the registry (as convert is also the name of a system tool).
780+
#animation.convert_path: convert
781+
## Additional arguments to pass to convert.
782+
#animation.convert_args:
783+
#
778784
#animation.embed_limit: 20.0 # Limit, in MB, of size of base64 encoded
779785
# animation in HTML (i.e. IPython notebook)

0 commit comments

Comments
 (0)