6
6
7
7
from matplotlib import _api
8
8
9
-
9
+ @ _api . deprecate ( "3.10" )
10
10
def world_transformation (xmin , xmax ,
11
11
ymin , ymax ,
12
12
zmin , zmax , pb_aspect = None ):
@@ -37,6 +37,7 @@ def rotation_about_vector(v, angle):
37
37
return _rotation_about_vector (v , angle )
38
38
39
39
40
+ @_api .deprecate ("3.10" )
40
41
def _rotation_about_vector (v , angle ):
41
42
"""
42
43
Produce a rotation matrix for an angle in radians about a vector.
@@ -93,6 +94,7 @@ def _view_axes(E, R, V, roll):
93
94
return u , v , w
94
95
95
96
97
+ @_api .deprecate ("3.10" )
96
98
def _view_transformation_uvw (u , v , w , E ):
97
99
"""
98
100
Return the view transformation matrix.
@@ -142,6 +144,7 @@ def persp_transformation(zfront, zback, focal_length):
142
144
return _persp_transformation (zfront , zback , focal_length )
143
145
144
146
147
+ @_api .deprecate ("3.10" )
145
148
def _persp_transformation (zfront , zback , focal_length ):
146
149
e = focal_length
147
150
a = 1 # aspect ratio
@@ -159,6 +162,7 @@ def ortho_transformation(zfront, zback):
159
162
return _ortho_transformation (zfront , zback )
160
163
161
164
165
+ @_api .deprecate ("3.10" )
162
166
def _ortho_transformation (zfront , zback ):
163
167
# note: w component in the resulting vector will be (zback-zfront), not 1
164
168
a = - (zfront + zback )
@@ -170,6 +174,7 @@ def _ortho_transformation(zfront, zback):
170
174
return proj_matrix
171
175
172
176
177
+ @_api .deprecate ("3.10" )
173
178
def _proj_transform_vec (vec , M ):
174
179
vecw = np .dot (M , vec )
175
180
w = vecw [3 ]
@@ -178,6 +183,7 @@ def _proj_transform_vec(vec, M):
178
183
return txs , tys , tzs
179
184
180
185
186
+ @_api .deprecate ("3.10" )
181
187
def _proj_transform_vec_clip (vec , M ):
182
188
vecw = np .dot (M , vec )
183
189
w = vecw [3 ]
@@ -189,6 +195,7 @@ def _proj_transform_vec_clip(vec, M):
189
195
return txs , tys , tzs , tis
190
196
191
197
198
+ @_api .deprecate ("3.10" )
192
199
def inv_transform (xs , ys , zs , invM ):
193
200
"""
194
201
Transform the points by the inverse of the projection matrix, *invM*.
@@ -203,10 +210,12 @@ def inv_transform(xs, ys, zs, invM):
203
210
return vecr [0 ], vecr [1 ], vecr [2 ]
204
211
205
212
213
+ @_api .deprecate ("3.10" )
206
214
def _vec_pad_ones (xs , ys , zs ):
207
215
return np .array ([xs , ys , zs , np .ones_like (xs )])
208
216
209
217
218
+ @_api .deprecate ("3.10" )
210
219
def proj_transform (xs , ys , zs , M ):
211
220
"""
212
221
Transform the points by the projection matrix *M*.
@@ -220,6 +229,7 @@ def proj_transform(xs, ys, zs, M):
220
229
alternative = "proj_transform" )(proj_transform )
221
230
222
231
232
+ @_api .deprecate ("3.10" )
223
233
def proj_transform_clip (xs , ys , zs , M ):
224
234
"""
225
235
Transform the points by the projection matrix
@@ -235,6 +245,7 @@ def proj_points(points, M):
235
245
return _proj_points (points , M )
236
246
237
247
248
+ @_api .deprecate ("3.10" )
238
249
def _proj_points (points , M ):
239
250
return np .column_stack (_proj_trans_points (points , M ))
240
251
@@ -244,6 +255,7 @@ def proj_trans_points(points, M):
244
255
return _proj_trans_points (points , M )
245
256
246
257
258
+ @_api .deprecate ("3.10" )
247
259
def _proj_trans_points (points , M ):
248
260
xs , ys , zs = zip (* points )
249
261
return proj_transform (xs , ys , zs , M )
0 commit comments