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 054c816

Browse filesBrowse files
committed
Expire deprecations in proj3d
1 parent e6cabb2 commit 054c816
Copy full SHA for 054c816

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+0
-72
lines changed

‎doc/api/toolkits/mplot3d.rst

Copy file name to clipboardExpand all lines: doc/api/toolkits/mplot3d.rst
-6Lines 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

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/proj3d.py
-66Lines 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)
@@ -215,11 +174,6 @@ def proj_transform(xs, ys, zs, M):
215174
return _proj_transform_vec(vec, M)
216175

217176

218-
transform = _api.deprecated(
219-
"3.8", obj_type="function", name="transform",
220-
alternative="proj_transform")(proj_transform)
221-
222-
223177
def proj_transform_clip(xs, ys, zs, M):
224178
"""
225179
Transform the points by the projection matrix
@@ -230,30 +184,10 @@ def proj_transform_clip(xs, ys, zs, M):
230184
return _proj_transform_vec_clip(vec, M)
231185

232186

233-
@_api.deprecated("3.8")
234-
def proj_points(points, M):
235-
return _proj_points(points, M)
236-
237-
238187
def _proj_points(points, M):
239188
return np.column_stack(_proj_trans_points(points, M))
240189

241190

242-
@_api.deprecated("3.8")
243-
def proj_trans_points(points, M):
244-
return _proj_trans_points(points, M)
245-
246-
247191
def _proj_trans_points(points, M):
248192
xs, ys, zs = zip(*points)
249193
return proj_transform(xs, ys, zs, M)
250-
251-
252-
@_api.deprecated("3.8")
253-
def rot_x(V, alpha):
254-
cosa, sina = np.cos(alpha), np.sin(alpha)
255-
M1 = np.array([[1, 0, 0, 0],
256-
[0, cosa, -sina, 0],
257-
[0, sina, cosa, 0],
258-
[0, 0, 0, 1]])
259-
return np.dot(M1, V)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.