Version 3.1.2
matplotlib

matplotlib.axis.YAxis.get_visible

YAxis.get_visible()

Return the visibility.