pyvista.Property.line_width#

property Property.line_width: float[source]#

Return or set the line width.

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

Examples

Change the line width to 10.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.line_width = 10
>>> prop.line_width
10.0

Visualize the default line width.

>>> prop.line_width = 1.0
>>> prop.show_edges = True
>>> prop.plot()
https://d33wubrfki0l68.cloudfront.net/5025b424b78cbd7b8b2984875360e4f658a39707/545ca/_images/pyvista-property-line_width-1_00_00.png

Visualize with a line width of 5.0

>>> prop.line_width = 5.0
>>> prop.plot()
https://d33wubrfki0l68.cloudfront.net/c519b98e894719d5236224674bad810512ff8583/136f9/_images/pyvista-property-line_width-1_01_00.png