Version 3.1.2
matplotlib

matplotlib.axis.Axis.get_majorticklocs

Axis.get_majorticklocs()[source]

Get the array of major tick locations in data coordinates.