Axes.get_xaxis()
[Discouraged] Return the XAxis instance.
Discouraged
The use of this function is discouraged. You should instead directly access the attribute ax.xaxis.
ax.xaxis