class_docstr: Scalar to RGBA mapping table.
  
  A lookup table is an array that maps input values to output values. When
  plotting data over a dataset, it is necessary to map those scalars to
  colors (in the RGBA format), and this class provides the functionality to
  do so.
  
  See `vtkLookupTable
  <https://vtk.org/doc/nightly/html/classvtkLookupTable.html>`_ for more
  details regarding the underlying VTK API.
  
  Parameters
  ----------
  cmap : str | colors.Colormap, optional
      Color map from ``matplotlib``, ``colorcet``, or ``cmocean``. Either
      ``cmap`` or ``values`` can be set, but not both.
  
  n_values : int, default: 256
      Number of colors in the color map.
  
  flip : bool, default: False
      Flip the direction of cmap. Most colormaps allow ``*_r`` suffix to do this
      as well.
  
  values : array_like[float], optional
      Lookup table values. Either ``values`` or ``cmap`` can be set, but not
      both.
  
  value_range : tuple, optional
      The range of the brightness of the mapped lookup table. This range is
      only used when creating custom color maps and will be ignored if
      ``cmap`` is set.
  
  hue_range : tuple, optional
      Lookup table hue range. This range is only used when creating custom
      color maps and will be ignored if ``cmap`` is set.
  
  alpha_range : tuple, optional
      Lookup table alpha (transparency) range. This range is only used when
      creating custom color maps and will be ignored if ``cmap`` is set.
  
  scalar_range : tuple, optional
      The range of scalars which will be mapped to colors. Values outside of
      this range will be colored according to
      :attr`LookupTable.below_range_color` and
      :attr`LookupTable.above_range_color`.
  
  log_scale : bool, optional
      Use a log scale when mapping scalar values.
  
  nan_color : ColorLike, optional
      Color to render any values that are NANs.
  
  above_range_color : ColorLike, optional
      Color to render any values above :attr:`LookupTable.scalar_range`.
  
  below_range_color : ColorLike, optional
      Color to render any values below :attr:`LookupTable.scalar_range`.
  
  ramp : str, optional
      The shape of the table ramp. This range is only used when creating
      custom color maps and will be ignored if ``cmap`` is set.
  
  annotations : dict, optional
      A dictionary of annotations. Keys are the float values in the scalars
      range to annotate on the scalar bar and the values are the string
      annotations.
  
  Examples
  --------
  Plot the lookup table with the default VTK color map.
  
  >>> import pyvista as pv
  >>> lut = pv.LookupTable()
  >>> lut
  LookupTable (...)
    Table Range:                (0.0, 1.0)
    N Values:                   256
    Above Range Color:          None
    Below Range Color:          None
    NAN Color:                  Color(name='maroon', hex='#800000ff', opacity=255)
    Log Scale:                  False
    Color Map:                  "PyVista Lookup Table"
      Alpha Range:              (1.0, 1.0)
      Hue Range:                (0.0, 0.66667)
      Saturation Range          (1.0, 1.0)
      Value Range               (1.0, 1.0)
      Ramp                      s-curve
  >>> lut.plot()
  
  Plot the lookup table with the ``'inferno'`` color map.
  
  >>> import pyvista as pv
  >>> lut = pv.LookupTable('inferno', n_values=32)
  >>> lut
  LookupTable (...)
    Table Range:                (0.0, 1.0)
    N Values:                   32
    Above Range Color:          None
    Below Range Color:          None
    NAN Color:                  Color(name='maroon', hex='#800000ff', opacity=255)
    Log Scale:                  False
    Color Map:                  "inferno"
  >>> lut.plot()
class_docstr_tok: ["Scalar","to","RGBA","mapping","table",".","A","lookup","table","is","an","array","that","maps","input","values","to","output","values",".","When","plotting","data","over","a","dataset",",","it","is","necessary","to","map","those","scalars","to","colors","(","in","the","RGBA","format",")",",","and","this","class","provides","the","functionality","to","do","so",".","See","`","vtkLookupTable","<","https",":","\/\/vtk.org\/doc\/nightly\/html\/classvtkLookupTable.html",">","`","_","for","more","details","regarding","the","underlying","VTK","API",".","Parameters","--","--","--","--","--","cmap",":","str","|","colors.Colormap",",","optional","Color","map","from","``","matplotlib","``",",","``","colorcet","``",",","or","``","cmocean","``",".","Either","``","cmap","``","or","``","values","``","can","be","set",",","but","not","both",".","n_values",":","int",",","default",":","256","Number","of","colors","in","the","color","map",".","flip",":","bool",",","default",":","False","Flip","the","direction","of","cmap",".","Most","colormaps","allow","``","*","_r","``","suffix","to","do","this","as","well",".","values",":","array_like","[","float","]",",","optional","Lookup","table","values",".","Either","``","values","``","or","``","cmap","``","can","be","set",",","but","not","both",".","value_range",":","tuple",",","optional","The","range","of","the","brightness","of","the","mapped","lookup","table",".","This","range","is","only","used","when","creating","custom","color","maps","and","will","be","ignored","if","``","cmap","``","is","set",".","hue_range",":","tuple",",","optional","Lookup","table","hue","range",".","This","range","is","only","used","when","creating","custom","color","maps","and","will","be","ignored","if","``","cmap","``","is","set",".","alpha_range",":","tuple",",","optional","Lookup","table","alpha","(","transparency",")","range",".","This","range","is","only","used","when","creating","custom","color","maps","and","will","be","ignored","if","``","cmap","``","is","set",".","scalar_range",":","tuple",",","optional","The","range","of","scalars","which","will","be","mapped","to","colors",".","Values","outside","of","this","range","will","be","colored","according","to",":","attr","`","LookupTable.below_range_color","`","and",":","attr","`","LookupTable.above_range_color","`",".","log_scale",":","bool",",","optional","Use","a","log","scale","when","mapping","scalar","values",".","nan_color",":","ColorLike",",","optional","Color","to","render","any","values","that","are","NANs",".","above_range_color",":","ColorLike",",","optional","Color","to","render","any","values","above",":","attr",":","`","LookupTable.scalar_range","`",".","below_range_color",":","ColorLike",",","optional","Color","to","render","any","values","below",":","attr",":","`","LookupTable.scalar_range","`",".","ramp",":","str",",","optional","The","shape","of","the","table","ramp",".","This","range","is","only","used","when","creating","custom","color","maps","and","will","be","ignored","if","``","cmap","``","is","set",".","annotations",":","dict",",","optional","A","dictionary","of","annotations",".","Keys","are","the","float","values","in","the","scalars","range","to","annotate","on","the","scalar","bar","and","the","values","are","the","string","annotations",".","Examples","--","--","--","--","Plot","the","lookup","table","with","the","default","VTK","color","map",".",">",">",">","import","pyvista","as","pv",">",">",">","lut","=","pv.LookupTable","(",")",">",">",">","lut","LookupTable","(","...",")","Table","Range",":","(","0.0",",","1.0",")","N","Values",":","256","Above","Range","Color",":","None","Below","Range","Color",":","None","NAN","Color",":","Color","(","name='maroon","'",",","hex=","'","#","800000ff","'",",","opacity=255",")","Log","Scale",":","False","Color","Map",":","``","PyVista","Lookup","Table","''","Alpha","Range",":","(","1.0",",","1.0",")","Hue","Range",":","(","0.0",",","0.66667",")","Saturation","Range","(","1.0",",","1.0",")","Value","Range","(","1.0",",","1.0",")","Ramp","s-curve",">",">",">","lut.plot","(",")","Plot","the","lookup","table","with","the","``","'inferno","'","``","color","map",".",">",">",">","import","pyvista","as","pv",">",">",">","lut","=","pv.LookupTable","(","'inferno","'",",","n_values=32",")",">",">",">","lut","LookupTable","(","...",")","Table","Range",":","(","0.0",",","1.0",")","N","Values",":","32","Above","Range","Color",":","None","Below","Range","Color",":","None","NAN","Color",":","Color","(","name='maroon","'",",","hex=","'","#","800000ff","'",",","opacity=255",")","Log","Scale",":","False","Color","Map",":","``","inferno","''",">",">",">","lut.plot","(",")"]
code: def alpha_range(self, value: tuple):  # numpydoc ignore=GL08
      self.SetAlphaRange(value)
      self.rebuild()
  
imports: from typing import Any, Optional, Tuple, Union
  import numpy
  import pyvista
  from pyvista.core.utilities.arrays import convert_array
  from pyvista.core.utilities.misc import no_new_attr
  from .None import _vtk
  from ._typing import ColorLike
  from .colors import Color, get_cmap_safe
  from .tools import opacity_transfer_function
label_desc: Use image node_id 14 for calling the LookupTable obj's underlying member method code with example usage: obj.alpha_range(value) without return types