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

Skip to content

Commit 43f16ae

Browse files
committed
FIX: add backcompat
1 parent 89277e4 commit 43f16ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,9 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
823823
transform=lambda line: line[1:] if line.startswith("#") else line,
824824
fail_on_error=True)
825825
dict.update(rcParamsDefault, rcsetup._hardcoded_defaults)
826+
# set this property for back compatibility
827+
rcsetup.defaultParams = rcParamsDefailt.copy()
828+
826829
rcParams = RcParams() # The global instance.
827830
dict.update(rcParams, dict.items(rcParamsDefault))
828831
dict.update(rcParams, _rc_params_in_file(matplotlib_fname()))

0 commit comments

Comments
 (0)