Version 2.2.3
matplotlib

matplotlib.axis.XTick.get_tickdir

XTick.get_tickdir()