Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21b016e

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

File tree

Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed

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

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/2018-08-17-AL-deprecations.rst
+3Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.