Set the aspect ratios.
Possible values:
value | description |
|---|---|
'auto' | automatic; fill the position rectangle with data. |
'equal' | adapt all the axes to have equal aspect ratios. |
'equalxy' | adapt the x and y axes to have equal aspect ratios. |
'equalxz' | adapt the x and z axes to have equal aspect ratios. |
'equalyz' | adapt the y and z axes to have equal aspect ratios. |
If not None, this defines which parameter will be adjusted to meet the required aspect. See set_adjustable for further details.
If not None, this defines where the Axes will be drawn if there is extra space due to aspect constraints. The most common way to specify the anchor are abbreviations of cardinal directions:
value | description |
|---|---|
'C' | centered |
'SW' | lower left corner |
'S' | middle of bottom edge |
'SE' | lower right corner |
etc. |
See set_anchor for further details.
If True, apply the settings to all shared Axes.
mpl_toolkits.mplot3d.axes3d.Axes3D.set_aspect
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.set_aspect.html