pyvista.LookupTable.value_range#
- property LookupTable.value_range: tuple[float, float] | None[source]#
Return or set the brightness of the mapped lookup table.
This range is only used when creating custom color maps and will return
None
when a color map has been set withLookupTable.cmap
.This will clear any existing color map and create new values for the lookup table when set.
Examples
Show the effect of setting the value range on the default color map.
>>> import pyvista as pv >>> lut = pv.LookupTable() >>> lut.value_range = (0, 1.0) >>> lut.plot()
Demonstrate a different value range.
>>> import pyvista as pv >>> lut = pv.LookupTable() >>> lut.value_range = (0.5, 0.8) >>> lut.plot()