class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`"]
docstr: Set the data to be drawn.
  
  Parameters
  ----------
  x, y : np.ndarray, optional, default None
      2D array containing the coordinates of the polygons
  z : np.ndarray
      2D array containing the value which will be mapped into the polygons
      colors.
      If x and y is None, the polygons will be displaced on a grid
      otherwise x and y will be used as polygons vertices coordinates as::
          
          (x[i+1, j], y[i+1, j])           (x[i+1, j+1], y[i+1, j+1])
                              +---------+
                              | z[i, j] |
                              +---------+
              (x[i, j], y[i, j])           (x[i, j+1], y[i, j+1])
  
      "ASCII from: <https://matplotlib.org/3.2.1/api/_as_gen/
                   matplotlib.pyplot.pcolormesh.html>".
  autoLevels: bool, optional
      If set, overrides the value of ``enableAutoLevels``
docstr_tok: ["Set","the","data","to","be","drawn",".","Parameters","--","--","--","--","--","x",",","y",":","np.ndarray",",","optional",",","default","None","2D","array","containing","the","coordinates","of","the","polygons","z",":","np.ndarray","2D","array","containing","the","value","which","will","be","mapped","into","the","polygons","colors",".","If","x","and","y","is","None",",","the","polygons","will","be","displaced","on","a","grid","otherwise","x","and","y","will","be","used","as","polygons","vertices","coordinates","as",":",":","(","x","[","i+1",",","j","]",",","y","[","i+1",",","j","]",")","(","x","[","i+1",",","j+1","]",",","y","[","i+1",",","j+1","]",")","+","--","--","--","--","-+","|","z","[","i",",","j","]","|","+","--","--","--","--","-+","(","x","[","i",",","j","]",",","y","[","i",",","j","]",")","(","x","[","i",",","j+1","]",",","y","[","i",",","j+1","]",")","``","ASCII","from",":","<","https",":","\/\/matplotlib.org\/3.2.1\/api\/_as_gen\/","matplotlib.pyplot.pcolormesh.html",">","''",".","autoLevels",":","bool",",","optional","If","set",",","overrides","the","value","of","``","enableAutoLevels","``"]
code: def setData(self, *args, **kwargs):
      """
      Set the data to be drawn.
  
      Parameters
      ----------
      x, y : np.ndarray, optional, default None
          2D array containing the coordinates of the polygons
      z : np.ndarray
          2D array containing the value which will be mapped into the polygons
          colors.
          If x and y is None, the polygons will be displaced on a grid
          otherwise x and y will be used as polygons vertices coordinates as::
  
              (x[i+1, j], y[i+1, j])           (x[i+1, j+1], y[i+1, j+1])
                                  +---------+
                                  | z[i, j] |
                                  +---------+
                  (x[i, j], y[i, j])           (x[i, j+1], y[i, j+1])
  
          "ASCII from: <https://matplotlib.org/3.2.1/api/_as_gen/
                       matplotlib.pyplot.pcolormesh.html>".
      autoLevels: bool, optional
          If set, overrides the value of ``enableAutoLevels``
      """
      old_bounds = self._dataBounds
      self._prepareData(args)
      boundsChanged = old_bounds != self._dataBounds
  
      self._rerender(
          autoLevels=kwargs.get("autoLevels", self._defaultAutoLevels)
      )
  
      if boundsChanged:
          self.prepareGeometryChange()
          self.informViewBoundsChanged()
  
      self.update()
  
imports: import numpy
  from ..None import Qt, colormap
  from ..None import functions
  from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 3 for calling the PColorMeshItem obj's underlying member method code with example usage: obj.setData() without return types