matplotlib.axis.XAxis.get_major_ticks

XAxis.get_major_ticks(self, numticks=None)

Get the tick instances; grow as necessary.