Skip to content

Commit

Permalink
datapath deprecated in 3.2.1 (#4335)
Browse files Browse the repository at this point in the history
Co-authored-by: poplarShift <poplarShift@users.noreply.github.com>
  • Loading branch information
poplarShift and poplarShift authored Mar 30, 2020
1 parent e041877 commit adbae0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions holoviews/plotting/mpl/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def _rc_context(rcparams):
'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
'datapath', # deprecated in MPL 3.2.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
3 changes: 2 additions & 1 deletion holoviews/plotting/mpl/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,11 @@ def state(cls):
'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
'datapath', # deprecated in MPL 3.2.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}

try:
cls._rcParams = old_rcparams
yield
Expand Down

0 comments on commit adbae0e

Please sign in to comment.