pyvista.Property.line_width#

property Property.line_width: float[source]#

Return or set the line width.

Defaults to pyvista.plotting.themes.Theme.line_width.

The width is expressed in screen units and must be positive.

Examples

Get the default line width and visualize it. >>> import pyvista as pv >>> prop = pv.Property() >>> prop.line_width 1.0

>>> prop.show_edges = True
>>> prop.plot()
../../../_images/pyvista-Property-line_width-1_00_00.png

Visualize a line width of 5.0.

>>> prop.line_width = 5.0
>>> prop.plot()
../../../_images/pyvista-Property-line_width-1_01_00.png

Visualize a line width of 10.0.

>>> prop.line_width = 10.0
>>> prop.plot()
../../../_images/pyvista-Property-line_width-1_02_00.png