pyvista.Property.style#

property Property.style: str[source]#

Return or set Visualization style of the mesh.

One of the following (case insensitive):

  • 'surface'

  • 'wireframe'

  • 'points'

Examples

Set the representation style to 'Wireframe'

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.style = 'wireframe'
>>> prop.style
'Wireframe'

Visualize default surface representation style.

>>> prop.style = 'surface'
>>> prop.plot()
../../../_images/pyvista-Property-style-1_00_00.png

Visualize wireframe representation style.

>>> prop.style = 'wireframe'
>>> prop.plot()
../../../_images/pyvista-Property-style-1_01_00.png

Visualize points representation style.

>>> prop.style = 'points'
>>> prop.point_size = 5.0
>>> prop.plot()
../../../_images/pyvista-Property-style-1_02_00.png