pyvista.LookupTable.annotations#

property LookupTable.annotations: dict[float, str][source]#

Return or set annotations.

Pass a dictionary of annotations. Keys are the float values in the scalars range to annotate on the scalar bar and the values are the string annotations.

Examples

Assign annotations to the lookup table.

>>> import pyvista as pv
>>> lut = pv.LookupTable('magma')
>>> lut.annotations = {0: 'low', 0.5: 'medium', 1: 'high'}
>>> lut.plot()
../../../_images/pyvista-LookupTable-annotations-1_00_00.png