pyvista.LookupTable.nan_color#

property LookupTable.nan_color: Color | None[source]#

Return or set the not a number (NAN) color.

Any values that are NANs will be rendered with this color.

Examples

Set the NAN color to 'grey'.

>>> import pyvista as pv
>>> lut = pv.LookupTable()
>>> lut.nan_color = 'grey'
>>> lut.plot()
../../../_images/pyvista-LookupTable-nan_color-1_00_00.png