pyvista.Property.render_points_as_spheres#

property Property.render_points_as_spheres: bool[source]#

Return or set rendering points as spheres.

Defaults to pyvista.plotting.themes.Theme.render_points_as_spheres.

Requires representation style be set to 'points'.

Examples

Enable rendering points as spheres.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.style = 'points'
>>> prop.point_size = 20
>>> prop.render_points_as_spheres = True
>>> prop.render_points_as_spheres
True

Visualize default point rendering.

>>> prop.render_points_as_spheres = False
>>> prop.plot()
https://d33wubrfki0l68.cloudfront.net/8a1898be3d949f36b7e035a51c140a1efac724f5/46546/_images/pyvista-property-render_points_as_spheres-1_00_00.png

Visualize rendering points as spheres.

>>> prop.render_points_as_spheres = True
>>> prop.plot()
https://d33wubrfki0l68.cloudfront.net/9a12d05690a6a1c6efc1bf216c3006278de36641/8a55b/_images/pyvista-property-render_points_as_spheres-1_01_00.png