class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
  
  Item displaying an isocurve of a 2D array. To align this item correctly with an 
  ImageItem, call ``isocurve.setParentItem(image)``.
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`","Item","displaying","an","isocurve","of","a","2D","array",".","To","align","this","item","correctly","with","an","ImageItem",",","call","``","isocurve.setParentItem","(","image",")","``","."]
docstr: Set the data/image to draw isocurves for.
  
  ==============  ========================================================================
  **Arguments:**
  data            A 2-dimensional ndarray.
  level           The cutoff value at which to draw the curve. If level is not specified,
                  the previously set level is used.
  ==============  ========================================================================
docstr_tok: ["Set","the","data\/image","to","draw","isocurves","for",".","==============","========================================================================","*","*","Arguments",":","*","*","data","A","2-dimensional","ndarray",".","level","The","cutoff","value","at","which","to","draw","the","curve",".","If","level","is","not","specified",",","the","previously","set","level","is","used",".","==============","========================================================================"]
code: def setData(self, data, level=None):
      """
      Set the data/image to draw isocurves for.
  
      ==============  ========================================================================
      **Arguments:**
      data            A 2-dimensional ndarray.
      level           The cutoff value at which to draw the curve. If level is not specified,
                      the previously set level is used.
      ==============  ========================================================================
      """
      if level is None:
          level = self.level
      self.level = level
      self.data = data
      self.path = None
      self.prepareGeometryChange()
      self.update()
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/IsocurveItem.py
imports: from ..None import functions
  from ..None import getConfigOption
  from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 2 for calling the IsocurveItem obj's underlying member method code with example usage: obj.setData(data, level) without return types