class_docstr: Display an embedding gui for interaction and selection.
  In addition show the number of landmarks selected and give the
  user the chance to start a new analysis
class_docstr_tok: ["Display","an","embedding","gui","for","interaction","and","selection",".","In","addition","show","the","number","of","landmarks","selected","and","give","the","user","the","chance","to","start","a","new","analysis"]
docstr: Initialize the scatter plot with the embedding provided
  
  Args:
      embedding ([type]): [description]
      weights ([type]): [description]
      on_selection ([type]): [description]
      on_close ([type]): [description]
      disable_select (bool, optional): [description]. Defaults to False.
      top_level (bool, optional): [description]. Defaults to False.
      labels ([type], optional): [description]. Defaults to None.
      color_norm ([type], optional): [description]. Defaults to None.
docstr_tok: ["Initialize","the","scatter","plot","with","the","embedding","provided","Args",":","embedding","(","[","type","]",")",":","[","description","]","weights","(","[","type","]",")",":","[","description","]","on_selection","(","[","type","]",")",":","[","description","]","on_close","(","[","type","]",")",":","[","description","]","disable_select","(","bool",",","optional",")",":","[","description","]",".","Defaults","to","False",".","top_level","(","bool",",","optional",")",":","[","description","]",".","Defaults","to","False",".","labels","(","[","type","]",",","optional",")",":","[","description","]",".","Defaults","to","None",".","color_norm","(","[","type","]",",","optional",")",":","[","description","]",".","Defaults","to","None","."]
code: def init_plot(
      self,
      embedding,
      weights,
      on_selection,
      on_close,
      disable_select=False,
      top_level=False,
      labels=None,
      color_norm=None,
  ):
      """Initialize the scatter plot with the embedding provided
  
      Args:
          embedding ([type]): [description]
          weights ([type]): [description]
          on_selection ([type]): [description]
          on_close ([type]): [description]
          disable_select (bool, optional): [description]. Defaults to False.
          top_level (bool, optional): [description]. Defaults to False.
          labels ([type], optional): [description]. Defaults to None.
          color_norm ([type], optional): [description]. Defaults to None.
      """
      self.plot_widget.init_plot(
          embedding,
          weights,
          self.on_selection,
          on_close,
          disable_select,
          top_level,
          labels,
          color_norm,
      )
      self.on_selection_callback = on_selection
  
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 2 for calling the EmbeddingViewer obj's underlying member method code with example usage: obj.init_plot(embedding, weights, on_selection, on_close, disable_select, top_level, labels, color_norm) without return types