matplotlib

matplotlib.artist.Artist.set_visible

Artist.set_visible(b)

Set the artist’s visibility.

Parameters:

b : bool