W3cubDocs

/Matplotlib 3.5

matplotlib.axes.Axes.get_box_aspect

Axes.get_box_aspect()[source]

Return the Axes box aspect, i.e. the ratio of height to width.

The box aspect is None (i.e. chosen depending on the available figure space) unless explicitly specified.

See also

matplotlib.axes.Axes.set_box_aspect

for a description of box aspect.

matplotlib.axes.Axes.set_aspect

for a description of aspect handling.

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.get_box_aspect.html