Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 334d875

Browse files
authored
Merge pull request #13552 from meeseeksmachine/auto-backport-of-pr-11241-on-v3.1.x
Backport PR #11241 on branch v3.1.x (Deprecate the MATPLOTLIBDATA environment variable.)
2 parents ff98f1c + 147ff75 commit 334d875

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/api/next_api_changes/2018-08-17-AL-deprecations.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ The following API elements are deprecated:
1212
- ``cbook.get_label``, ``cbook.iterable``,
1313
- ``font_manager.OSXInstalledFonts``,
1414
- ``mlab.demean``,
15+
16+
The following environment variables are deprecated:
17+
- ``MATPLOTLIBDATA``,

lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,8 @@ def _get_data_path():
606606
if not os.path.isdir(path):
607607
raise RuntimeError('Path in environment MATPLOTLIBDATA not a '
608608
'directory')
609+
cbook.warn_deprecated(
610+
"3.1", name="MATPLOTLIBDATA", obj_type="environment variable")
609611
return path
610612

611613
def get_candidate_paths():

0 commit comments

Comments
 (0)