Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit adf696f

Browse filesBrowse 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
Copy full SHA for adf696f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.