# Examples from pyvista.plotting.themes.Theme.save
# ================================================

# Export and then load back in a theme.
import pyvista as pv
theme = pv.themes.DocumentTheme()
theme.background = 'white'
theme.save('my_theme.json')
loaded_theme = pv.load_theme('my_theme.json')

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

