8000 API: change type of matplotlib.rcParamsOrig from dict -> RcParams · matplotlib/matplotlib@adf696f · GitHub
[go: up one dir, main page]

Skip to content

Commit adf696f

Browse files
tacaswellanntzer
authored andcommitted
API: change type of matplotlib.rcParamsOrig from dict -> RcParams
This is to ensure that when IPython get the backend in IPython.core.pylabtools.find_gui_and_backend the backend resolution is triggered.
1 parent ce0c5e0 commit adf696f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,10 +1097,10 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
10971097
_fullpath = os.path.join(_basedir, rcParams['examples.directory'])
10981098
rcParams['examples.directory'] = _fullpath
10991099

1100-
rcParamsOrig = rcParams.copy()
11011100

11021101
with warnings.catch_warnings():
11031102
warnings.simplefilter("ignore", MatplotlibDeprecationWarning)
1103+
rcParamsOrig = RcParams(rcParams.copy())
11041104
rcParamsDefault = RcParams([(key, default) for key, (default, converter) in
11051105
defaultParams.items()
11061106
if key not in _all_deprecated])

0 commit comments

Comments
 (0)
0