Version 3.1.2
matplotlib

matplotlib.axis.XAxis.get_majorticklabels

XAxis.get_majorticklabels()

Return a list of Text instances for the major ticklabels.