@@ -244,6 +244,8 @@ def _transformed_cube(self, vals):
244244 (minx , maxy , maxz )]
245245 return proj3d ._proj_points (xyzs , self .M )
246246
247+ @_api .delete_parameter ("3.11" , "share" )
248+ @_api .delete_parameter ("3.11" , "anchor" )
247249 def set_aspect (self , aspect , adjustable = None , anchor = None , share = False ):
248250 """
249251 Set the aspect ratios.
@@ -263,39 +265,31 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
263265 'equalyz' adapt the y and z axes to have equal aspect ratios.
264266 ========= ==================================================
265267
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.
270273
271274 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.
287277
288278 share : bool, default: False
289- If ``True``, apply the settings to all shared Axes.
279+ .. deprecated:: 3.11
280+ This parameter has no effect.
290281
291282 See Also
292283 --------
293284 mpl_toolkits.mplot3d.axes3d.Axes3D.set_box_aspect
294285 """
286+ if adjustable is None :
287+ adjustable = 'box'
288+ _api .check_in_list (['box' , 'datalim' ], adjustable = adjustable )
295289 _api .check_in_list (('auto' , 'equal' , 'equalxy' , 'equalyz' , 'equalxz' ),
296290 aspect = aspect )
297- super (). set_aspect (
298- aspect = 'auto' , adjustable = adjustable , anchor = anchor , share = share )
291+
292+ self . set_adjustable ( adjustable )
299293 self ._aspect = aspect
300294
301295 if aspect in ('equal' , 'equalxy' , 'equalxz' , 'equalyz' ):
0 commit comments