pyvista.LookupTable.plot

pyvista.LookupTable.plot#

LookupTable.plot(**kwargs)[source]#

Plot this lookup table.

Parameters:
**kwargsdict, optional

Optional keyword arguments passed to pyvista.Plotter.show().

Examples

Plot the "viridis" colormap with the below and above colors.

>>> import pyvista as pv
>>> lut = pv.LookupTable('viridis', n_values=8)
>>> lut.below_range_color = 'black'
>>> lut.above_range_color = 'grey'
>>> lut.nan_color = 'r'
>>> lut.plot()
../../../_images/pyvista-LookupTable-plot-1_00_00.png

Plot only "blues" colormap.

>>> import pyvista as pv
>>> lut = pv.LookupTable('blues', n_values=1024)
>>> lut.plot()
../../../_images/pyvista-LookupTable-plot-1_01_00.png