Version 3.1.2
matplotlib

matplotlib.axis.Axis.get_visible

Axis.get_visible()

Return the visibility.