pyvista.Plotter.theme

Contents

pyvista.Plotter.theme#

property Plotter.theme: Theme[source]#

Return or set the theme used for this plotter.

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()
>>> pl.theme = themes.DarkTheme()
>>> actor = pl.add_mesh(pv.Sphere())
>>> pl.show()
../../../_images/pyvista-Plotter-theme-1_00_00.png