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/93dee0fb8e1123fcb14464a21ee7ac3106a08d86/36649/_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/b8a6e88771e4d0143f8695dab9950178991a5890/9953f/_images/pyvista-property-line_width-1_01_00.png