Skip to content

Commit 7f87e22

Browse files
authored
Merge pull request #16415 from anntzer/k31
Expire some APIs deprecated in mpl3.1.
2 parents fa21675 + 1c9354d commit 7f87e22

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

doc/api/next_api_changes/removals.rst

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ Removals
22
--------
33
The following deprecated APIs have been removed:
44

5+
Modules
6+
~~~~~~~
7+
- ``backends.qt_editor.formlayout`` (use the formlayout module available on
8+
PyPI instead).
9+
510
Classes and methods
611
~~~~~~~~~~~~~~~~~~~
712
- ``backend_bases.RendererBase.strip_math()``
@@ -126,3 +131,7 @@ rcParams
126131
:rc:`savefig.facecolor` to "none" to get a transparent background.
127132
- The ``pgf.debug``, ``verbose.fileo`` and ``verbose.verbose.level`` rcParams,
128133
which had no effect, have been removed.
134+
135+
Environment variables
136+
~~~~~~~~~~~~~~~~~~~~~
137+
- ``MATPLOTLIBDATA`` (no replacement).

lib/matplotlib/__init__.py

-9
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,6 @@ def get_cachedir():
510510
def _get_data_path():
511511
"""Return the path to matplotlib data."""
512512

513-
if 'MATPLOTLIBDATA' in os.environ:
514-
path = os.environ['MATPLOTLIBDATA']
515-
if not os.path.isdir(path):
516-
raise RuntimeError('Path in environment MATPLOTLIBDATA not a '
517-
'directory')
518-
cbook.warn_deprecated(
519-
"3.1", name="MATPLOTLIBDATA", obj_type="environment variable")
520-
return path
521-
522513
path = Path(__file__).with_name("mpl-data")
523514
if path.is_dir():
524515
return str(path)

lib/matplotlib/backends/qt_editor/formlayout.py

-7
This file was deleted.

0 commit comments

Comments
 (0)