matplotlib

matplotlib.axis.XAxis.get_data_interval

XAxis.get_data_interval()

return the Interval instance for this axis data limits