Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commita90b5a9

Browse files
committed
Deprecate unused functions in _path
1 parent7c03c1b commita90b5a9

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

‎src/_path_wrapper.cpp

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,19 @@ static PyObject *Py_points_in_path(PyObject *self, PyObject *args)
9393

9494
constchar *Py_point_on_path__doc__ =
9595
"point_on_path(x, y, radius, path, trans)\n"
96-
"--\n\n";
96+
"--\n\n"
97+
".. deprecated:: 3.8\n";
9798

9899
static PyObject *Py_point_on_path(PyObject *self, PyObject *args)
99100
{
101+
charconst* msg =
102+
"_path.point_on_path is deprecated since Matplotlib 3.8 and will be removed"
103+
"two minor releases later as it is not used in the library. If you rely on"
104+
"it, please let us know.";
105+
if (PyErr_WarnEx(PyExc_DeprecationWarning, msg,1)) {
106+
returnNULL;
107+
}
108+
100109
double x, y, r;
101110
py::PathIterator path;
102111
agg::trans_affine trans;
@@ -125,10 +134,19 @@ static PyObject *Py_point_on_path(PyObject *self, PyObject *args)
125134

126135
constchar *Py_points_on_path__doc__ =
127136
"points_on_path(points, radius, path, trans)\n"
128-
"--\n\n";
137+
"--\n\n"
138+
".. deprecated:: 3.8\n";
129139

130140
static PyObject *Py_points_on_path(PyObject *self, PyObject *args)
131141
{
142+
charconst* msg =
143+
"_path.points_on_path is deprecated since Matplotlib 3.8 and will be removed"
144+
"two minor releases later as it is not used in the library. If you rely on"
145+
"it, please let us know.";
146+
if (PyErr_WarnEx(PyExc_DeprecationWarning, msg,1)) {
147+
returnNULL;
148+
}
149+
132150
numpy::array_view<constdouble,2> points;
133151
double r;
134152
py::PathIterator path;
@@ -156,10 +174,19 @@ static PyObject *Py_points_on_path(PyObject *self, PyObject *args)
156174

157175
constchar *Py_get_path_extents__doc__ =
158176
"get_path_extents(path, trans)\n"
159-
"--\n\n";
177+
"--\n\n"
178+
".. deprecated:: 3.8\n";
160179

161180
static PyObject *Py_get_path_extents(PyObject *self, PyObject *args)
162181
{
182+
charconst* msg =
183+
"_path.get_path_extents is deprecated since Matplotlib 3.8 and will be"
184+
"removed two minor releases later as it is not used in the library. If you"
185+
"rely on it, please let us know.";
186+
if (PyErr_WarnEx(PyExc_DeprecationWarning, msg,1)) {
187+
returnNULL;
188+
}
189+
163190
py::PathIterator path;
164191
agg::trans_affine trans;
165192

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp