Plotter.theme

Contents

Plotter.theme#

property Plotter.theme: Theme[source]#

Return the theme used for this plotter.

Set the theme when initializing the plotter instance.

Returns:
pyvista.Theme

Theme of this plotter.

Examples

Use the dark theme for a plotter.

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