save

ParaViewTheme.save(filename)

Serialize this theme to a json file.

Parameters
filenamestr

Path to save the theme to. Should end in '.json'.

Examples

Export and then load back in a theme.

>>> import pyvista
>>> theme = pyvista.themes.DefaultTheme()
>>> theme.background = 'white'
>>> theme.save('my_theme.json')  
>>> loaded_theme = pyvista.load_theme('my_theme.json')