pyvista.LookupTable.alpha_range#

property LookupTable.alpha_range: tuple[float, float] | None[source]#

Return or set the alpha range.

This range is only used when creating custom color maps and will return None when a color map has been set with LookupTable.cmap.

This will clear any existing color map and create new values for the lookup table when set.

Examples

Create a custom “blues” lookup table that decreases in opacity.

>>> import pyvista as pv
>>> lut = pv.LookupTable()
>>> lut.hue_range = (0.7, 0.7)
>>> lut.alpha_range = (1.0, 0.0)
>>> lut.plot(background='grey')
../../../_images/pyvista-LookupTable-alpha_range-1_00_00.png