Skip to content

Commit

Permalink
add MPL 3.1 deprecations to rcparam context manager (#3804)
Browse files Browse the repository at this point in the history
  • Loading branch information
poplarShift authored and philippjfr committed Jul 9, 2019
1 parent 18c3e92 commit 23ead43
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 23ead43

Please sign in to comment.