LookupTable.cmap#
- property LookupTable.cmap: Colormap | None[source]#
Return or set the color map used by this lookup table.
See Named Colormaps for supported colormaps.
Examples#
Download Python source code | Download Jupyter notebook
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()