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
>>> lut = pyvista.LookupTable()
>>> tf = lut.to_opacity_tf()
>>> tf
<vtkmodules.vtkCommonDataModel.vtkPiecewiseFunction(...) at ...>