matplotlib

matplotlib.artist.Artist.get_rasterized

Artist.get_rasterized()

Return whether the artist is to be rasterized.