pyvista.plotting.themes.Theme.point_shape

pyvista.plotting.themes.Theme.point_shape#

property Theme.point_shape: str | None[source]#

Return or set the default point sprite shape.

Added in version 0.48.

When set, points are rendered as the specified shape instead of squares. This automatically disables render_points_as_spheres.

Accepts a PointSpriteShape enum value or a string. Must be one of 'circle', 'triangle', 'hexagon', 'diamond', 'asterisk', 'star', or None.

Examples

Render all points as circles by default globally.

>>> import pyvista as pv
>>> pv.global_theme.point_shape = 'circle'

Or use the enum.

>>> from pyvista.plotting.opts import PointSpriteShape
>>> pv.global_theme.point_shape = PointSpriteShape.CIRCLE