8000
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.
1 parent 2655bba commit de281feCopy full SHA for de281fe
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