matplotlib

matplotlib.axis.Axis.get_tick_padding

Axis.get_tick_padding()