pyvista.LookupTable.saturation_range#

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

Return or set the saturation 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 increases in saturation.

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