Version 2.2.3
matplotlib

matplotlib.axis.Axis.get_majorticklocs

Axis.get_majorticklocs()[source]

Get the major tick locations in data coordinates as a numpy array