Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2655bba + de281fe commit 687531dCopy full SHA for 687531d
1 file changed
lib/matplotlib/style/core.py
@@ -43,14 +43,14 @@
43
44
def _remove_blacklisted_style_params(d, warn=True):
45
o = {}
46
- for key, val in d.items():
+ for key in d: # prevent triggering RcParams.__getitem__('backend')
47
if key in STYLE_BLACKLIST:
48
if warn:
49
cbook._warn_external(
50
"Style includes a parameter, '{0}', that is not related "
51
"to style. Ignoring".format(key))
52
else:
53
- o[key] = val
+ o[key] = d[key]
54
return o
55
56
0 commit comments