Skip to content

Commit

Permalink
Merge pull request matplotlib#17252 from lukelbd/bugfix_default-style…
Browse files Browse the repository at this point in the history
…-backend

Fix bug where matplotlib.style('default') resets the backend
  • Loading branch information
QuLogic authored Apr 28, 2020
2 parents 6ec39d5 + 23470a8 commit 68652b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/style/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@

def _remove_blacklisted_style_params(d, warn=True):
o = {}
for key, val in d.items():
for key in d: # prevent triggering RcParams.__getitem__('backend')
if key in STYLE_BLACKLIST:
if warn:
cbook._warn_external(
"Style includes a parameter, '{0}', that is not related "
"to style. Ignoring".format(key))
else:
o[key] = val
o[key] = d[key]
return o


Expand Down

0 comments on commit 68652b1

Please sign in to comment.