Skip to content

Commit

Permalink
Fixed warnings when using matplotlib >= 3.0 (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Oct 7, 2018
1 parent caad471 commit f329886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/mpl/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def _rc_context(rcparams):
deprecated = ['text.latex.unicode', 'examples.directory']
old_rcparams = {k: mpl.rcParams[k] for k in mpl.rcParams.keys()
if mpl_version < '3.0' or k not in deprecated}
mpl.rcParams.update(rcparams)
mpl.rcParams.clear()
mpl.rcParams.update(dict(old_rcparams, **rcparams))
try:
yield
finally:
Expand Down

0 comments on commit f329886

Please sign in to comment.