pyvista.Property.lighting

pyvista.Property.lighting#

property Property.lighting: bool[source]#

Return or set view direction lighting.

Examples

Get the default lighting and visualize it

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.lighting
True
>>> prop.plot()
../../../_images/pyvista-Property-lighting-1_00_00.png

Visualize disabled lighting.

>>> prop.lighting = False
>>> prop.plot()
../../../_images/pyvista-Property-lighting-1_01_00.png