save#
- DefaultTheme.save(filename)[source]#
Serialize this theme to a json file.
- Parameters
- filename
str
Path to save the theme to. Should end in
'.json'
.
- filename
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')