Version 2.2.3
matplotlib

matplotlib.axis.XAxis.iter_ticks

XAxis.iter_ticks()

Iterate through all of the major and minor ticks.