Property.render_lines_as_tubes#
- property Property.render_lines_as_tubes: bool[source]#
Return or set rendering lines as tubes.
Defaults to
pyvista.plotting.themes.Theme.render_lines_as_tubes.Requires lines in the scene, e.g. with
styleset to'wireframe'orshow_edgesset toTrue.See also
- Plot Truss-like FEA Solution with Cylinders
Example that uses
render_lines_as_tubes.
Examples#
Download Python source code | Download Jupyter notebook
Get the default line rendering and visualize it.
>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.render_lines_as_tubes
False
>>> prop.show_edges = True
>>> prop.line_width = 10
>>> prop.edge_color = 'yellow'
>>> prop.plot()
Visualize rendering lines as tubes.
>>> prop.render_lines_as_tubes = True
>>> prop.plot()