set_plot_theme

set_plot_theme(theme)

Set the plotting parameters to a predefined theme using a string.

Parameters
themestr

Theme name. Either 'default', 'document', 'dark', or 'paraview'.

Examples

Set to the default theme.

>>> import pyvista
>>> pyvista.set_plot_theme('default')

Set to the document theme.

>>> pyvista.set_plot_theme('document')

Set to the dark theme.

>>> pyvista.set_plot_theme('dark')

Set to the ParaView theme.

>>> pyvista.set_plot_theme('paraview')