Version 2.2.4
matplotlib

matplotlib.axes.Axes.get_xbound

Axes.get_xbound()

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