Colors

Colors#

Color(*args, **kwargs)

Helper class to convert between different color representations used in PyVista.

ColorLike

Represent a union type

get_cmap_safe(cmap)

Fetch a colormap by name from matplotlib, colorcet, cmocean, or cmcrameri.

See also

Colormap Choices

Choose a colormap when plotting scalars.

Color Cycling

Cycle through colors when adding meshes.

Lookup Tables

Build a LookupTable from a colormap or colors.

Themes

Set default colors through a theme.

Named colors supported by Color, Plotter, and other plotting-related methods:

Named colormaps supported by LookupTable, Plotter, and other plotting-related methods: