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: Resize the plot te respect the extent of the updated embedding
docstr_tok: ["Resize","the","plot","te","respect","the","extent","of","the","updated","embedding"]
code: def update_scatter_plot_limits(self, embedding):
      """Resize the plot te respect the extent of the updated embedding"""
      minp = np.amin(embedding, axis=0)
      maxp = np.amax(embedding, axis=0)
  
      extent_x = (maxp[0] - minp[0]) if (maxp[0] - minp[0]) > 0 else 0.1
      extent_y = (maxp[1] - minp[1]) if (maxp[1] - minp[1]) > 0 else 0.1
      self.ax.set(
          xlim=(minp[0] - 0.1 * extent_x, maxp[0] + 0.1 * extent_x),
          ylim=(minp[1] - 0.1 * extent_y, maxp[1] + 0.1 * extent_y),
      )
  
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 6 for calling the EmbeddingGui obj's underlying member method code with example usage: obj.update_scatter_plot_limits(embedding) without return types