class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
  
  GraphicsObject displaying an image with non-uniform sample points. It's
  commonly used to display 2-d or slices of higher dimensional data that
  have a regular but non-uniform grid e.g. measurements or simulation results.
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`","GraphicsObject","displaying","an","image","with","non-uniform","sample","points",".","It's","commonly","used","to","display","2-d","or","slices","of","higher","dimensional","data","that","have","a","regular","but","non-uniform","grid","e.g",".","measurements","or","simulation","results","."]
code: def __init__(self, x, y, z, border=None):
      GraphicsObject.__init__(self)
  
      # convert to numpy arrays
      x = np.asarray(x, dtype=np.float64)
      y = np.asarray(y, dtype=np.float64)
      z = np.asarray(z, dtype=np.float64)
  
      if x.ndim != 1 or y.ndim != 1:
          raise Exception("x and y must be 1-d arrays.")
  
      if np.any(np.diff(x) < 0) or np.any(np.diff(y) < 0):
          raise Exception(
              "The values in x and y must be monotonically increasing."
          )
  
      if len(z.shape) != 2 or z.shape != (x.size, y.size):
          raise Exception(
              "The length of x and y must match the shape of z."
          )
  
      # default colormap (black - white)
      self.cmap = ColorMap(None, [0.0, 1.0])
      self.lut = self.cmap.getLookupTable(nPts=256)
  
      self.data = (x, y, z)
      self.levels = None
      self.border = border
      self.picture = None
  
      self.update()
  
file_path: pyqtgraph/pyqtgraph/graphicsItems/NonUniformImage.py
imports: import warnings
  import numpy
  from ..None import functions
  from ..colormap import ColorMap
  from ..None import Qt
  from ..Qt import QtCore, QtGui
  from .GraphicsObject import GraphicsObject
  from .HistogramLUTItem import HistogramLUTItem
label_desc: Use image node_id 1 to create a new NonUniformImage object from inherited base classes: GraphicsObject with example: obj = NonUniformImage(x, y, z, border)