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