class_docstr: Remove an arbitrary, graphically defined baseline from the data.
class_docstr_tok: ["Remove","an","arbitrary",",","graphically","defined","baseline","from","the","data","."]
docstr: Return a list of Point() where the x position is set to the nearest x value in *data* for each point in *pts*.
code: def adjustXPositions(self, pts, data):
      """Return a list of Point() where the x position is set to the nearest x value in *data* for each point in *pts*."""
      points = []
      timeIndices = []
      for p in pts:
          x = np.argwhere(abs(data - p.x()) == abs(data - p.x()).min())
          points.append(Point(data[x], p.y()))
          timeIndices.append(x)
  
      return points, timeIndices
  
imports: import numpy
  from ...None import Point, PolyLineROI
  from ...None import functions
  from ...None import metaarray
  from .None import functions
  from .common import CtrlNode, PlottingCtrlNode, metaArrayWrapper
label_desc: Use image node_id 5 for calling the RemoveBaseline obj's underlying member method code with example usage: obj.adjustXPositions(pts, data) and returns: points,  timeIndices