Version 3.0.2
matplotlib

matplotlib.axis.XAxis.get_tick_space

XAxis.get_tick_space()[source]

Return the estimated number of ticks that can fit on the axis.