Skip to content

Commit

Permalink
add MPL 3.1 deprecations to rcparam context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
poplarShift committed Jul 5, 2019
1 parent fd57be8 commit f4a69c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion holoviews/plotting/mpl/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ def _rc_context(rcparams):
"""
Context manager that temporarily overrides the pyplot rcParams.
"""
deprecated = ['text.latex.unicode', 'examples.directory']
deprecated = [
'text.latex.unicode',
'examples.directory',
'savefig.frameon', # deprecated in MPL 3.1, to be removed in 3.3
'verbose.level', # deprecated in MPL 3.1, to be removed in 3.3
'verbose.fileo', # deprecated in MPL 3.1, to be removed in 3.3
]
old_rcparams = {k: mpl.rcParams[k] for k in mpl.rcParams.keys()
if mpl_version < '3.0' or k not in deprecated}
mpl.rcParams.clear()
Expand Down

0 comments on commit f4a69c9

Please sign in to comment.