Version 2.2.4
matplotlib

matplotlib.axes.Axes.get_aspect

Axes.get_aspect()