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 process(self, In, display=True):
      if display and self.plot is not None:
          items = set()
          # Add all new input items to selected plot
          for name, vals in In.items():
              if vals is None:
                  continue
              if type(vals) is not list:
                  vals = [vals]
  
              for val in vals:
                  vid = id(val)
                  if (
                      vid in self.items
                      and self.items[vid].scene() is self.plot.scene()
                  ):
                      # Item is already added to the correct scene
                      #   possible bug: what if two plots occupy the same scene? (should
                      #   rarely be a problem because items are removed from a plot before
                      #   switching).
                      items.add(vid)
                  else:
                      # Add the item to the plot, or generate a new item if needed.
                      if isinstance(val, QtWidgets.QGraphicsItem):
                          self.plot.addItem(val)
                          item = val
                      else:
                          item = self.plot.plot(val)
                      self.items[vid] = item
                      items.add(vid)
  
          # Any left-over items that did not appear in the input must be removed
          for vid in list(self.items.keys()):
              if vid not in items:
                  self.plot.removeItem(self.items[vid])
                  del self.items[vid]
  
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 5 for calling the PlotWidgetNode obj's underlying member method code with example usage: obj.process(In, display) without return types