matplotlib.axes.Axes.get_aspect#

Axes.get_aspect()[source]#

Return the aspect ratio of the axes scaling.

This is either "auto" or a float giving the ratio of y/x-scale.