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.