Version 3.1.2
matplotlib

matplotlib.axis.XTick.get_tickdir

XTick.get_tickdir()