matplotlib

matplotlib.axis.Axis.get_major_locator

Axis.get_major_locator()

Get the locator of the major ticker