matplotlib.axis.XAxis.get_ticklocs
XAxis.
get_ticklocs
Get the tick locations in data coordinates as a numpy array
Artist tutorial