matplotlib.axes.Axes.get_xbound

Axes.get_xbound()

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