Plotter.theme#
- property Plotter.theme: Theme[source]#
Return the theme used for this plotter.
Set the theme when initializing the plotter instance.
- Returns:
pyvista.ThemeTheme of this plotter.
Examples#
Download Python source code | Download Jupyter notebook
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()