matplotlib

matplotlib.axis.XAxis.get_tick_space

XAxis.get_tick_space()