class_docstr: Plot curve that monitors an ROI and image for changes to automatically replot.
class_docstr_tok: ["Plot","curve","that","monitors","an","ROI","and","image","for","changes","to","automatically","replot","."]
code: def __init__(
      self, roi, data, img, axes=(0, 1), xVals=None, color=None
  ):
      self.roi = roi
      self.roiData = data
      self.roiImg = img
      self.axes = axes
      self.xVals = xVals
      PlotCurveItem.__init__(
          self, self.getRoiData(), x=self.xVals, color=color
      )
      # roi.connect(roi, QtCore.SIGNAL('regionChanged'), self.roiChangedEvent)
      roi.sigRegionChanged.connect(self.roiChangedEvent)
  
imports: from ..Qt import QtCore, QtGui, QtWidgets
  import math
  import sys
  import warnings
  import numpy
  from ..None import Qt, debug
  from ..None import functions
  from ..None import getConfigOption
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 1 to create a new ROIPlotItem object from inherited base classes: PlotCurveItem with example: obj = ROIPlotItem(roi, data, img, axes, xVals, color)