matplotlib

matplotlib.axis.Axis.get_view_interval

Axis.get_view_interval()

return the Interval instance for this axis view limits