pyvista.plotting.themes.Theme.cmap#

property Theme.cmap[source]#

Return or set the default colormap of pyvista.

See available Matplotlib colormaps. Only applicable for when displaying scalars. 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 as pv
>>> pv.global_theme.cmap = 'jet'