pyvista.Plotter.enable_3_lights

pyvista.Plotter.enable_3_lights#

Plotter.enable_3_lights(only_active=False) None[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()
../../../_images/pyvista-Plotter-enable_3_lights-1_00_00.png

Note how this varies from the default plotting.

>>> pl = demos.orientation_plotter()
>>> pl.show()
../../../_images/pyvista-Plotter-enable_3_lights-1_01_00.png