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","."]
docstr: Returns x and y arrays containing the histogram values for the current image.
  For an explanation of the return format, see numpy.histogram().
docstr_tok: ["Returns","x","and","y","arrays","containing","the","histogram","values","for","the","current","image",".","For","an","explanation","of","the","return","format",",","see","numpy.histogram","(",")","."]
code: def getHistogram(self, **kwds):
      """Returns x and y arrays containing the histogram values for the current image.
      For an explanation of the return format, see numpy.histogram().
      """
  
      z = self.data[2]
      z = z[np.isfinite(z)]
      hist = np.histogram(z, **kwds)
  
      return hist[1][:-1], hist[0]
  
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 4 for calling the NonUniformImage obj's underlying member method code with example usage: obj.getHistogram() and returns: hist,  hist