pyvista.set_plot_theme#

set_plot_theme(theme)[source]#

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 as pv
>>> pv.set_plot_theme('default')

Set to the document theme.

>>> pv.set_plot_theme('document')

Set to the dark theme.

>>> pv.set_plot_theme('dark')

Set to the ParaView theme.

>>> pv.set_plot_theme('paraview')