Skip to content

Commit

Permalink
Ensure that deprecated mpl rcparam options are not applied (#4042)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Oct 8, 2019
1 parent 532899c commit 1d048a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion holoviews/plotting/mpl/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,13 @@ def _compute_bbox(self, fig, kw):
@classmethod
@contextmanager
def state(cls):
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}

Expand Down

0 comments on commit 1d048a0

Please sign in to comment.