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

Skip to content

Commit e2a21aa

Browse files
committed
FIX
1 parent d0d76ad commit e2a21aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,10 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
833833
defaultParams = {}
834834
for key, validator in rcsetup._validators.items():
835835
if key == 'backend':
836-
defaultParams['backend'] = rcsetup._auto_backend_sentinel
836+
defaultParams['backend'] = [rcsetup._auto_backend_sentinel,
837+
validator]
837838
elif key in rcParamsDefault.keys():
838-
defaultParams[key] = validator
839+
defaultParams[key] = [rcParamsDefault[key], validator]
839840
else:
840841
_api.warn_external(f'rcsetup key "{key}" not in the default'
841842
' rcParams')

0 commit comments

Comments
 (0)