class_docstr: Generates a scatter plot from a record array or nested dicts
class_docstr_tok: ["Generates","a","scatter","plot","from","a","record","array","or","nested","dicts"]
code: def process(self, input, display=True):
      # print "scatterplot process"
      if not display:
          return {"plot": None}
  
      self.updateKeys(input[0])
  
      x = str(self.ctrls["x"].currentText())
      y = str(self.ctrls["y"].currentText())
      size = str(self.ctrls["size"].currentText())
      pen = QtGui.QPen(QtGui.QColor(0, 0, 0, 0))
      points = []
      for i in input:
          pt = {"pos": (i[x], i[y])}
          if self.ctrls["sizeEnabled"].isChecked():
              pt["size"] = i[size]
          if self.ctrls["borderEnabled"].isChecked():
              pt["pen"] = QtGui.QPen(self.ctrls["border"].getColor(i))
          else:
              pt["pen"] = pen
          if self.ctrls["colorEnabled"].isChecked():
              pt["brush"] = QtGui.QBrush(
                  self.ctrls["color"].getColor(i)
              )
          points.append(pt)
      self.item.setPxMode(not self.ctrls["absoluteSize"].isChecked())
  
      self.item.setPoints(points)
  
      return {"plot": self.item}
  
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 2 for calling the ScatterPlot obj's underlying member method code with example usage: obj.process(input, display) and returns: dict, dict