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

Skip to content

Deprecated api Tri #26920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doc/api/next_api_changes/removals/00001-ABC.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Removal change template
Deprecated api modified
~~~~~~~~~~~~~~~~~~~~~~~

Enter description of methods/classes removed here....
_api.warn_deprecated is replaced with valueError

Please rename file with PR number and your initials i.e. "99999-ABC.rst"
and ``git add`` the new file.
The modification is for ``lib/matplotlib/tri/*.py``.
9 changes: 3 additions & 6 deletions lib/matplotlib/tri/triangulation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from ._triangulation import * # noqa: F401, F403
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
9 changes: 4 additions & 5 deletions lib/matplotlib/tri/tricontour.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")

8 changes: 3 additions & 5 deletions lib/matplotlib/tri/trifinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
8 changes: 3 additions & 5 deletions lib/matplotlib/tri/triinterpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
8 changes: 3 additions & 5 deletions lib/matplotlib/tri/tripcolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
8 changes: 3 additions & 5 deletions lib/matplotlib/tri/triplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
8 changes: 3 additions & 5 deletions lib/matplotlib/tri/trirefine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
8 changes: 3 additions & 5 deletions lib/matplotlib/tri/tritools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from matplotlib import _api


_api.warn_deprecated(
"3.7",
message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")
raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will "
f"be removed two minor releases later. All functionality is "
f"available via the top-level module matplotlib.tri")