Property.point_size#
- property Property.point_size: float[source]#
Return or set the point size.
Defaults to
pyvista.plotting.themes.Theme.point_size.This requires that the
stylebe set to'points'.Property has range
[0.0, inf). The size is expressed in screen units, so larger values draw larger points.
Examples#
Download Python source code | Download Jupyter notebook
Get the default point size and visualize it.
>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.point_size
5.0
>>> prop.style = 'points'
>>> prop.plot()
Visualize a point size of 10.0.
>>> prop.point_size = 10.0
>>> prop.plot()
Visualize a point size of 50.0.
>>> prop.point_size = 50.0
>>> prop.plot()
Used In#
API Examples
Property.render_points_as_spheres(1 use)Property.style(1 use)