pyvista.set_plot_theme

Contents

pyvista.set_plot_theme#

set_plot_theme(theme)[source]#

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

Parameters:
themestr

The theme name. Available predefined theme names include:

  • 'dark',

  • 'default',

  • 'document',

  • 'document_build',

  • 'document_pro',

  • 'paraview',

  • 'testing' and

  • 'vtk'.

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')