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: Use the rectangle path to make a
  selection based on the selecton state
docstr_tok: ["Use","the","rectangle","path","to","make","a","selection","based","on","the","selecton","state"]
code: def on_end_rectangle_select(self, pressed, released):
      """Use the rectangle path to make a
      selection based on the selecton state"""
      x1, y1 = pressed.xdata, pressed.ydata
      x2, y2 = released.xdata, released.ydata
      path = Path(
          np.array(([x1, y1], [x2, y1], [x2, y2], [x1, y2], [x1, y1]))
      )
      self.select_path(path)
  
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 16 for calling the EmbeddingGui obj's underlying member method code with example usage: obj.on_end_rectangle_select(pressed, released) without return types