matplotlib

matplotlib.artist.Artist.get_visible

Artist.get_visible()

Return the artist’s visiblity