load_theme#
- load_theme(filename: str | Path) Theme[source]#
Load a theme from a file.
- Parameters:
- Returns:
pyvista.plotting.themes.ThemeThe loaded theme.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista.plotting.themes import DocumentTheme
>>> theme = DocumentTheme()
>>> theme.save('my_theme.json')
>>> loaded_theme = pv.load_theme('my_theme.json')
Used In#
API Examples
Theme.save(1 use)