class_docstr: Connection to PlotWidget. Will plot arrays, metaarrays, and display event lists.
class_docstr_tok: ["Connection","to","PlotWidget",".","Will","plot","arrays",",","metaarrays",",","and","display","event","lists","."]
code: def setPlot(self, plot):
      # print "======set plot"
      if plot == self.plot:
          return
  
      # clear data from previous plot
      if self.plot is not None:
          for vid in list(self.items.keys()):
              self.plot.removeItem(self.items[vid])
              del self.items[vid]
  
      self.plot = plot
      self.updateUi()
      self.update()
      self.sigPlotChanged.emit(self)
  
imports: import numpy
  from ...None import ComboBox, PlotDataItem
  from ...graphicsItems.ScatterPlotItem import ScatterPlotItem
  from ...Qt import QtCore, QtGui, QtWidgets
  from ..Node import Node
  from .common import CtrlNode
label_desc: Use image node_id 3 for calling the PlotWidgetNode obj's underlying member method code with example usage: obj.setPlot(plot) without return types