Version 3.0.2
matplotlib

matplotlib.axis.XAxis.set_visible

XAxis.set_visible(b)

Set the artist's visibility.

Parameters:b : bool