def _is_alive(artist):
    """Check whether *artist* is still present on its parent axes."""
    return bool(artist
                and artist.axes
                and (artist.container in artist.axes.containers
                     if isinstance(artist, _pick_info.ContainerArtist) else
                     artist in _iter_axes_subartists(artist.axes)))
def _is_alive ( artist ) : return bool ( artist and artist . axes and ( artist . container in artist . axes . containers if isinstance ( artist , _pick_info . ContainerArtist ) else artist in _iter_axes_subartists ( artist . axes ) ) )
Check whether *artist* is still present on its parent axes.