Version 3.1.2
matplotlib

matplotlib.axis.XAxis.get_visible

XAxis.get_visible()

Return the visibility.