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()
https://d33wubrfki0l68.cloudfront.net/3d708e3d9d62aa9b6e3d358159079d117c03a65d/ccc89/_images/pyvista-lookuptable-nan_color-1_00_00.png