load_theme#
- load_theme(filename)[source]#
Load a theme from a file.
- Parameters:
- filename
str Theme file. Must be json.
- filename
- Returns:
pyvista.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')