Skip to content

Commit 21b016e

Browse files
authored
Merge pull request #11241 from anntzer/deprecate-MATPLOTLIBDATA
API: Deprecate the MATPLOTLIBDATA environment variable.
2 parents 2208665 + 404ff5d commit 21b016e

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

+3
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

+2
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)