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

Skip to content

Commit 8ecee40

Browse files
committed
Expire deprecations in proj3d
1 parent 68ed8e6 commit 8ecee40

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

doc/api/toolkits/mplot3d.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ the toolbar pan and zoom buttons are not used.
118118
:template: autosummary.rst
119119

120120
proj3d.inv_transform
121-
proj3d.persp_transformation
122-
proj3d.proj_points
123-
proj3d.proj_trans_points
124121
proj3d.proj_transform
125122
proj3d.proj_transform_clip
126-
proj3d.rot_x
127-
proj3d.transform
128-
proj3d.view_transformation
129123
proj3d.world_transformation

lib/mpl_toolkits/mplot3d/proj3d.py

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import numpy as np
66

7-
from matplotlib import _api
8-
97

108
def world_transformation(xmin, xmax,
119
ymin, ymax,
@@ -29,14 +27,6 @@ def world_transformation(xmin, xmax,
2927
[ 0, 0, 0, 1]])
3028

3129

32-
@_api.deprecated("3.8")
33-
def rotation_about_vector(v, angle):
34-
"""
35-
Produce a rotation matrix for an angle in radians about a vector.
36-
"""
37-
return _rotation_about_vector(v, angle)
38-
39-
4030
def _rotation_about_vector(v, angle):
4131
"""
4232
Produce a rotation matrix for an angle in radians about a vector.
@@ -116,32 +106,6 @@ def _view_transformation_uvw(u, v, w, E):
116106
return M
117107

118108

119-
@_api.deprecated("3.8")
120-
def view_transformation(E, R, V, roll):
121-
"""
122-
Return the view transformation matrix.
123-
124-
Parameters
125-
----------
126-
E : 3-element numpy array
127-
The coordinates of the eye/camera.
128-
R : 3-element numpy array
129-
The coordinates of the center of the view box.
130-
V : 3-element numpy array
131-
Unit vector in the direction of the vertical axis.
132-
roll : float
133-
The roll angle in radians.
134-
"""
135-
u, v, w = _view_axes(E, R, V, roll)
136-
M = _view_transformation_uvw(u, v, w, E)
137-
return M
138-
139-
140-
@_api.deprecated("3.8")
141-
def persp_transformation(zfront, zback, focal_length):
142-
return _persp_transformation(zfront, zback, focal_length)
143-
144-
145109
def _persp_transformation(zfront, zback, focal_length):
146110
e = focal_length
147111
a = 1 # aspect ratio
@@ -154,11 +118,6 @@ def _persp_transformation(zfront, zback, focal_length):
154118
return proj_matrix
155119

156120

157-
@_api.deprecated("3.8")
158-
def ortho_transformation(zfront, zback):
159-
return _ortho_transformation(zfront, zback)
160-
161-
162121
def _ortho_transformation(zfront, zback):
163122
# note: w component in the resulting vector will be (zback-zfront), not 1
164123
a = -(zfront + zback)
@@ -217,11 +176,6 @@ def proj_transform(xs, ys, zs, M):
217176
return _proj_transform_vec(vec, M)
218177

219178

220-
transform = _api.deprecated(
221-
"3.8", obj_type="function", name="transform",
222-
alternative="proj_transform")(proj_transform)
223-
224-
225179
@_api.deprecated("3.10")
226180
def proj_transform_clip(xs, ys, zs, M):
227181
return _proj_transform_clip(xs, ys, zs, M, focal_length=np.inf)
@@ -237,30 +191,10 @@ def _proj_transform_clip(xs, ys, zs, M, focal_length):
237191
return _proj_transform_vec_clip(vec, M, focal_length)
238192

239193

240-
@_api.deprecated("3.8")
241-
def proj_points(points, M):
242-
return _proj_points(points, M)
243-
244-
245194
def _proj_points(points, M):
246195
return np.column_stack(_proj_trans_points(points, M))
247196

248197

249-
@_api.deprecated("3.8")
250-
def proj_trans_points(points, M):
251-
return _proj_trans_points(points, M)
252-
253-
254198
def _proj_trans_points(points, M):
255199
xs, ys, zs = zip(*points)
256200
return proj_transform(xs, ys, zs, M)
257-
258-
259-
@_api.deprecated("3.8")
260-
def rot_x(V, alpha):
261-
cosa, sina = np.cos(alpha), np.sin(alpha)
262-
M1 = np.array([[1, 0, 0, 0],
263-
[0, cosa, -sina, 0],
264-
[0, sina, cosa, 0],
265-
[0, 0, 0, 1]])
266-
return np.dot(M1, V)

0 commit comments

Comments
 (0)