class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`"]
docstr: Sets lookup table ``lut`` to use for false color display of a monochrome image. See :func:`makeARGB <pyqtgraph.makeARGB>` for more 
  information on how this is used. Optionally, `lut` can be a callable that accepts the current image as an
  argument and returns the lookup table to use.
  
  Ordinarily, this table is supplied by a :class:`~pyqtgraph.HistogramLUTItem`,
  :class:`~pyqtgraph.GradientEditorItem` or :class:`~pyqtgraph.ColorBarItem`.
  
  Setting ``update = False`` avoids an immediate image update.
docstr_tok: ["Sets","lookup","table","``","lut","``","to","use","for","false","color","display","of","a","monochrome","image",".","See",":","func",":","`","makeARGB","<","pyqtgraph.makeARGB",">","`","for","more","information","on","how","this","is","used",".","Optionally",",","`","lut","`","can","be","a","callable","that","accepts","the","current","image","as","an","argument","and","returns","the","lookup","table","to","use",".","Ordinarily",",","this","table","is","supplied","by","a",":","class",":","`","~pyqtgraph.HistogramLUTItem","`",",",":","class",":","`","~pyqtgraph.GradientEditorItem","`","or",":","class",":","`","~pyqtgraph.ColorBarItem","`",".","Setting","``","update","=","False","``","avoids","an","immediate","image","update","."]
code: def setLookupTable(self, lut, update=True):
      """
      Sets lookup table ``lut`` to use for false color display of a monochrome image. See :func:`makeARGB <pyqtgraph.makeARGB>` for more
      information on how this is used. Optionally, `lut` can be a callable that accepts the current image as an
      argument and returns the lookup table to use.
  
      Ordinarily, this table is supplied by a :class:`~pyqtgraph.HistogramLUTItem`,
      :class:`~pyqtgraph.GradientEditorItem` or :class:`~pyqtgraph.ColorBarItem`.
  
      Setting ``update = False`` avoids an immediate image update.
      """
      if lut is not self.lut:
          if self._xp is not None:
              lut = self._ensure_proper_substrate(lut, self._xp)
          self.lut = lut
          self._effectiveLut = None
          if update:
              self.updateImage()
  
imports: import warnings
  from collections.abc import Callable
  import numpy
  from ..None import colormap
  from ..None import debug
  from ..None import functions
  from ..None import getConfigOption
  from ..Point import Point
  from ..Qt import QtCore, QtGui, QtWidgets
  from ..util.cupy_helper import getCupy
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 12 for calling the ImageItem obj's underlying member method code with example usage: obj.setLookupTable(lut, update) without return types