pyvista.plotting.themes.Theme.cmap

Contents

pyvista.plotting.themes.Theme.cmap#

property Theme.cmap: ColormapOptions[source]#

Return or set the default colormap of pyvista.

See Named Colormaps for supported colormaps. Only applicable when displaying scalars.

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'