Plotter.theme

Plotter.theme#

property Plotter.theme: Theme[source]#

Return the theme used for this plotter.

Set the theme when initializing the plotter instance; see the theme parameter of Plotter.

Returns:
pyvista.Theme

Theme of this plotter.

Examples#

Download Python source code | Download Jupyter notebook

Use the dark theme for a plotter.

>>> import pyvista as pv
>>> pl = pv.Plotter(theme='dark')
>>> actor = pl.add_mesh(pv.Sphere())
>>> pl.show()
../../../_images/pyvista-Plotter-theme-a81f3db099239e08_00_00.png