Version 3.1.2
matplotlib

matplotlib.axis.XAxis.get_majorticklocs

XAxis.get_majorticklocs()

Get the array of major tick locations in data coordinates.