def remove_artists(artists):
    """
    Remove a collection of matplotlib artists from a scene

    :param artists: Container of artists
    """
    for a in artists:
        try:
            a.remove()
        except __HOLE__:  # already removed
            pass
dataset/ETHPy150Open glue-viz/glue/glue/utils/matplotlib.py/remove_artists