code: 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)))
docs: Check whether *artist* is still present on its parent axes.