pyvista.LookupTable.to_opacity_tf#
- LookupTable.to_opacity_tf()[source]#
Return the opacity transfer function of this table.
- Returns:
vtk.vtkPiecewiseFunction
Piecewise function of the opacity of this color table.
Examples
>>> import pyvista as pv >>> lut = pv.LookupTable() >>> tf = lut.to_opacity_tf() >>> tf <vtkmodules.vtkCommonDataModel.vtkPiecewiseFunction(...) at ...>