Version 2.2.2
matplotlib

matplotlib.axis.XTick.get_tickdir

XTick.get_tickdir()