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#
Download Python source code | Download Jupyter notebook
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()