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 6ec39d5 + 23470a8 commit 68652b1Copy full SHA for 68652b1
1 file changed
lib/matplotlib/style/core.py
@@ -44,14 +44,14 @@
44
45
def _remove_blacklisted_style_params(d, warn=True):
46
o = {}
47
- for key, val in d.items():
+ for key in d: # prevent triggering RcParams.__getitem__('backend')
48
if key in STYLE_BLACKLIST:
49
if warn:
50
cbook._warn_external(
51
"Style includes a parameter, '{0}', that is not related "
52
"to style. Ignoring".format(key))
53
else:
54
- o[key] = val
+ o[key] = d[key]
55
return o
56
57
0 commit comments