pygfx.utils.enums.MarkerShape

class pygfx.utils.enums.MarkerShape

Bases: Enum

The MarkerShape enum specifies the shape of a markers in the PointsMarkerMaterial.

circle = 'circle'

● A circular shape (i.e. a disk).

ring = 'ring'

○ A circular shape with a hole in the middle.

square = 'square'

■ A big square shape (sized to encompass the circle shape).

diamond = 'diamond'

♦ A rotated square (sized to fit inside the circle).

plus = 'plus'
  • A plus symbol.

cross = 'cross'

x A rotated plus symbol.

asterix = 'asterix'

✳️ A plus and a cross combined.

triangle_up = 'triangle_up'

triangle_down = 'triangle_down'

triangle_left = 'triangle_left'

triangle_right = 'triangle_right'

heart = 'heart'

spade = 'spade'

club = 'club'

pin = 'pin'

📍

Examples

Points with different markers

Points with different markers