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()
../../../_images/pyvista-Property-render_points_as_spheres-1_00_00.png

Visualize rendering points as spheres.

>>> prop.render_points_as_spheres = True
>>> prop.plot()
../../../_images/pyvista-Property-render_points_as_spheres-1_01_00.png