pyvista.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'

Examples

Get the default style and visualize it.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.style
'Surface'
>>> prop.plot()
../../../_images/pyvista-Property-style-1_00_00.png

Visualize the wireframe style.

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

Visualize the points style.

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