cmap

property DefaultTheme.cmap

Return or set the default colormap of pyvista.

See available Matplotlib colormaps. Only applicable for when displaying scalars. Requires Matplotlib to be installed. If colorcet or cmocean are installed, their colormaps can be specified by name.

You can also specify a list of colors to override an existing colormap with a custom one. For example, to create a three color colormap you might specify ['green', 'red', 'blue']

Examples

Set the default global colormap to ‘jet’.

>>> import pyvista
>>> pyvista.global_theme.cmap = 'jet'