class_docstr: This is the matplotlib based GUI for a single analysis
  It assumes the analysis is simple image data (this could be abstracted)
class_docstr_tok: ["This","is","the","matplotlib","based","GUI","for","a","single","analysis","It","assumes","the","analysis","is","simple","image","data","(","this","could","be","abstracted",")"]
docstr: Handle a transient selection
docstr_tok: ["Handle","a","transient","selection"]
code: def on_over(self, event):
      """Handle a transient selection"""
      self.fig.canvas.setFocus()
      if not self.in_selection:
          # Emit a transient selection
          cont, index = self.scatter.contains(event)
          perm_set = set(np.nonzero(self.selection_mask)[0])
          if cont:
              # self.on_selection(list(index['ind']), SelectionEvent.TRANSIENT)
              self.on_selection(
                  list(set(index["ind"]) | perm_set),
                  SelectionEvent.TRANSIENT,
              )
          else:
              # self.on_selection([], SelectionEvent.TRANSIENT)
              self.on_selection(
                  list(perm_set), SelectionEvent.TRANSIENT
              )
  
imports: import io
  from enum import Enum
  import numpy
  import matplotlib.pyplot
  import matplotlib.style
  from matplotlib.widgets import RectangleSelector, LassoSelector, EllipseSelector, PolygonSelector
  from matplotlib.path import Path
  from matplotlib.backends.backend_qt5agg import FigureCanvas
  from matplotlib.figure import Figure
  from PyQt5 import QtWidgets, QtCore
  from cursors import DrawingCursors, DrawingShape, DrawingMode
label_desc: Use image node_id 10 for calling the EmbeddingGui obj's underlying member method code with example usage: obj.on_over(event) without return types