Version 3.1.2
matplotlib

matplotlib.axis.YAxis.get_ticklocs

YAxis.get_ticklocs(minor=False)

Get the array of tick locations in data coordinates.