pyvista.plotting.themes.Theme.color#

property Theme.color: Color[source]#

Return or set the default color of meshes in pyvista.

Used for meshes without scalars.

When setting, the value must be either a string, rgb list, or hex color string. For example:

  • color='white'

  • color='w'

  • color=[1.0, 1.0, 1.0]

  • color='#FFFFFF'

Examples

Set the default mesh color to ‘red’.

>>> import pyvista as pv
>>> pv.global_theme.color = 'red'