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.
1 parent 002b27e commit 23470a8Copy full SHA for 23470a8
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