@@ -244,6 +244,8 @@ def _transformed_cube(self, vals):
244
244
(minx , maxy , maxz )]
245
245
return proj3d ._proj_points (xyzs , self .M )
246
246
247
+ @_api .delete_parameter ("3.11" , "share" )
248
+ @_api .delete_parameter ("3.11" , "anchor" )
247
249
def set_aspect (self , aspect , adjustable = None , anchor = None , share = False ):
248
250
"""
249
251
Set the aspect ratios.
@@ -263,39 +265,31 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
263
265
'equalyz' adapt the y and z axes to have equal aspect ratios.
264
266
========= ==================================================
265
267
266
- adjustable : None or {'box', 'datalim'}, optional
267
- If not *None*, this defines which parameter will be adjusted to
268
- meet the required aspect. See `.set_adjustable` for further
269
- details.
268
+ adjustable : {'box', 'datalim'}, default: 'box'
269
+ Defines which parameter to adjust to meet the aspect ratio.
270
+
271
+ - 'box': Change the physical dimensions of the axes bounding box.
272
+ - 'datalim': Change the x, y, or z data limits.
270
273
271
274
anchor : None or str or 2-tuple of float, optional
272
- If not *None*, this defines where the Axes will be drawn if there
273
- is extra space due to aspect constraints. The most common way to
274
- specify the anchor are abbreviations of cardinal directions:
275
-
276
- ===== =====================
277
- value description
278
- ===== =====================
279
- 'C' centered
280
- 'SW' lower left corner
281
- 'S' middle of bottom edge
282
- 'SE' lower right corner
283
- etc.
284
- ===== =====================
285
-
286
- See `~.Axes.set_anchor` for further details.
275
+ .. deprecated:: 3.11
276
+ This parameter has no effect.
287
277
288
278
share : bool, default: False
289
- If ``True``, apply the settings to all shared Axes.
279
+ .. deprecated:: 3.11
280
+ This parameter has no effect.
290
281
291
282
See Also
292
283
--------
293
284
mpl_toolkits.mplot3d.axes3d.Axes3D.set_box_aspect
294
285
"""
286
+ if adjustable is None :
287
+ adjustable = 'box'
288
+ _api .check_in_list (['box' , 'datalim' ], adjustable = adjustable )
295
289
_api .check_in_list (('auto' , 'equal' , 'equalxy' , 'equalyz' , 'equalxz' ),
296
290
aspect = aspect )
297
- super (). set_aspect (
298
- aspect = 'auto' , adjustable = adjustable , anchor = anchor , share = share )
291
+
292
+ self . set_adjustable ( adjustable )
299
293
self ._aspect = aspect
300
294
301
295
if aspect in ('equal' , 'equalxy' , 'equalxz' , 'equalyz' ):
0 commit comments