Version 2.2.3
matplotlib

matplotlib.axis.Axis.get_visible

Axis.get_visible()

Return the artist's visiblity