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()
https://d33wubrfki0l68.cloudfront.net/3c2f19be55eea3190e105de8e8ecb12c0f3991f9/948c1/_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()
https://d33wubrfki0l68.cloudfront.net/e4ec8fce0b4dce36684bc74042597a3495af00a9/5aa9c/_images/pyvista-lookuptable-plot-1_01_00.png