pyvista.plotting.themes._LightingConfig.interpolation#

property _LightingConfig.interpolation: InterpolationType[source]#

Return or set the default interpolation type.

See pyvista.plotting.opts.InterpolationType.

Options are:

  • 'Phong'

  • 'Flat'

  • 'Physically based rendering'

This is stored as an integer value of the InterpolationType so that the theme can be JSON-serializable.

Examples

>>> import pyvista as pv
>>> pv.global_theme.lighting_params.interpolation = 'Phong'
>>> pv.global_theme.lighting_params.interpolation
<InterpolationType.PHONG: 2>