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

Skip to content

Commit 838b541

Browse files
committed
Add _internal.classic_mode rcParam
1 parent 6245d4e commit 838b541

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,3 +495,5 @@ animation.convert_path: convert # Path to ImageMagick's convert binary.
495495
# is also the name of a system tool.
496496
animation.convert_args:
497497
animation.html: none
498+
499+
_internal.classic_mode: True

lib/matplotlib/rcsetup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,14 @@ def validate_cycler(s):
11911191
'animation.convert_path': ['convert', six.text_type],
11921192
# Additional arguments for mencoder movie writer (using pipes)
11931193

1194-
'animation.convert_args': [[], validate_stringlist]}
1194+
'animation.convert_args': [[], validate_stringlist],
1195+
1196+
# Classic (pre 2.0) compatibility mode
1197+
# This is used for things that are hard to make backward compatible
1198+
# with a sane rcParam alone. This does *not* turn on classic mode
1199+
# altogether. For that use `matplotlib.style.use('classic')`.
1200+
'_internal.classic_mode': [False, validate_bool]
1201+
}
11951202

11961203

11971204
if __name__ == '__main__':

0 commit comments

Comments
 (0)