pyvista.Plotter.enable_3_lights#

Plotter.enable_3_lights(only_active=False)[source]#

Enable 3-lights illumination.

This will replace all pre-existing lights in the scene.

Parameters:
only_activebool, default: False

If True, only change the active renderer. The default is that every renderer is affected.

Examples

>>> from pyvista import demos
>>> pl = demos.orientation_plotter()
>>> pl.enable_3_lights()
>>> pl.show()
https://d33wubrfki0l68.cloudfront.net/590d145bb8e38b219002c239d7db833337186a3b/2aa2d/_images/pyvista-plotter-enable_3_lights-1_00_00.png

Note how this varies from the default plotting.

>>> pl = demos.orientation_plotter()
>>> pl.show()
https://d33wubrfki0l68.cloudfront.net/83f6e8293d12ef49feb012325bd9062dfcfb923f/ee6da/_images/pyvista-plotter-enable_3_lights-1_01_00.png