@@ -244,7 +244,7 @@ def _transformed_cube(self, vals):
244
244
(minx , maxy , maxz )]
245
245
return proj3d ._proj_points (xyzs , self .M )
246
246
247
- def set_aspect (self , aspect , adjustable = None , anchor = None , share = False ):
247
+ def set_aspect (self , aspect , adjustable = None , anchor = None ):
248
248
"""
249
249
Set the aspect ratios.
250
250
@@ -263,39 +263,25 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
263
263
'equalyz' adapt the y and z axes to have equal aspect ratios.
264
264
========= ==================================================
265
265
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.
270
-
271
- 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
- ===== =====================
266
+ ``adjustable : None or {'box', 'datalim'}, optional
267
+ This parameter is not used for 3D axes but is present for
268
+ compatibility with 2D axes. It will be ignored.
285
269
286
- See `~.Axes.set_anchor` for further details.
287
-
288
- share : bool, default: False
289
- If ``True``, apply the settings to all shared Axes .
270
+ ``anchor : None or str or 2-tuple of float, optional
271
+ .. deprecated:: 3.11
272
+ The `anchor` parameter is not used for 3D axes and will be
273
+ removed in a future version. It is ignored .
290
274
291
275
See Also
292
276
--------
293
277
mpl_toolkits.mplot3d.axes3d.Axes3D.set_box_aspect
294
278
"""
279
+ if anchor is not None :
280
+ _api .warn_deprecated ("3.11" , name = "anchor" , removal = "3.13" )
295
281
_api .check_in_list (('auto' , 'equal' , 'equalxy' , 'equalyz' , 'equalxz' ),
296
282
aspect = aspect )
297
- super (). set_aspect (
298
- aspect = 'auto' , adjustable = adjustable , anchor = anchor , share = share )
283
+ if adjustable is not None :
284
+ self . set_adjustable ( adjustable )
299
285
self ._aspect = aspect
300
286
301
287
if aspect in ('equal' , 'equalxy' , 'equalxz' , 'equalyz' ):
0 commit comments