theme

property Plotter.theme

Return or set the theme used for this plotter.

Examples

Use the dark theme for a plotter.

>>> import pyvista
>>> from pyvista import themes
>>> pl = pyvista.Plotter()
>>> pl.theme = themes.DarkTheme()
>>> actor = pl.add_mesh(pyvista.Sphere())
>>> pl.show()
../../../_images/pyvista-Plotter-theme-1_00_00.png