Property.style#
- property Property.style: str[source]#
Return or set the visualization style of the mesh.
One of the following (case insensitive):
'surface''wireframe''points'
The setter also accepts an integer or a
RepresentationTypeenum member.See also
representationEquivalent property which returns a
RepresentationTypeenum member.
Examples#
Download Python source code | Download Jupyter notebook
Get the default style and visualize it.
>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.style
'Surface'
>>> prop.plot()
Visualize the wireframe style.
>>> prop.style = 'wireframe'
>>> prop.plot()
Visualize the points style.
>>> prop.style = 'points'
>>> prop.point_size = 5.0
>>> prop.plot()