pyvista.LookupTable.cmap#
- property LookupTable.cmap: str | None[source]#
Return or set the color map used by this lookup table.
Examples
Apply the single Matplotlib color map
"Oranges"
.>>> import pyvista as pv >>> lut = pv.LookupTable() >>> lut.cmap = 'Oranges' >>> lut.plot()
Apply a list of colors as a colormap.
>>> import pyvista as pv >>> lut = pv.LookupTable() >>> lut.cmap = ['black', 'red', 'orange'] >>> lut.plot()