matplotlib.axes.Axes.get_ybound

Axes.get_ybound()

Return the lower and upper y-axis bounds, in increasing order.