Property.edge_opacity

Property.edge_opacity#

property Property.edge_opacity: float[source]#

Return or set the edge opacity of this property.

Default pyvista.plotting.themes.Theme.edge_opacity.

Edge opacity of the mesh. A single float value that will be applied globally edge opacity of the mesh and uniformly applied everywhere.

Property has range [0.0, 1.0]. A value of 1.0 is totally opaque and 0.0 is completely transparent.

Note

edge_opacity uses SetEdgeOpacity as the underlying method which requires VTK version 9.3 or higher. If SetEdgeOpacity is not available, edge_opacity is set to 1.

Examples#

Download Python source code | Download Jupyter notebook

Get the default edge opacity and visualize it.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.edge_opacity
1.0
>>> prop.show_edges = True
>>> prop.plot()
../../../_images/pyvista-Property-edge_opacity-9de6502cf920f862_00_00.png

Visualize an edge opacity of 0.75.

>>> prop.edge_opacity = 0.75
>>> prop.plot()
../../../_images/pyvista-Property-edge_opacity-9de6502cf920f862_01_00.png

Visualize an edge opacity of 0.25.

>>> prop.edge_opacity = 0.25
>>> prop.plot()
../../../_images/pyvista-Property-edge_opacity-9de6502cf920f862_02_00.png