point

pointNode

A single point at (x, y). x is the implicit attribute, and shape: chooses the marker drawn. For many points at once, scatter takes one coordinate list.

#Attributes

On any plane

sizeAnimatable
Point size.
Default6
colourAnimatable
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Also written: colorColour.
Defaultorange
shape
circlesquarerectangletrianglestardiamondhexagoncross
The mark the point is drawn as. A dot unless asked otherwise.
Defaultcircle
opacityAnimatable
Opacity.
Default1
Text drawn beside the element — rich text, so $maths$ and inline formatting render. Fades and draws with the element.
hiddenAnimatable
Declared but not drawn. Animatable — hidden: true !cue.to{false}(at: 2) reveals it — and unlike a cue, a hidden element still frames the plot, so the axes do not jump when it appears.
Defaultfalse
Also written: lockedKeeps the reader from editing this element on an editable: graph. Nothing at all on a graph that is not editable.
Defaultfalse
text-sizeAnimatable
Text size.
Default20
layerAnimatable
Paint order among the marks: a higher layer is drawn later, on top; equal or omitted, the marks stack in document order (later on top). Written z: before the argand plane took that letter for its coordinate.
Only withxplane
xImplicitAnimatable
X coordinate. On the ordinary plane and (x alone) the number line.Can be written as shorthand: point:value
Only withxyplane
xImplicitAnimatable
X coordinate. On the ordinary plane and (x alone) the number line.Can be written as shorthand: point:value
Y coordinate. On the ordinary plane and (x alone) the number line.
Only withargandplane
On the argand plane, the position as one complex number — a complex expression: 3 + 2i, (3 + 2i)^2, sqrt(13) * e^(i * a), with i the unit and parameters read as complex. Instead of re/im.
reAnimatable
On the argand plane, the real part of the position, a number; with im. z: gives both at once.
imAnimatable
On the argand plane, the imaginary part of the position, a number; with re. z: gives both at once.
Only withpolarplane
On the polar plane, the distance from the origin; with theta.
thetaAnimatable
On the polar plane, the angle anticlockwise from the right, in radians — 60deg writes it in degrees; with r. On a categorical theta (theta format:), a name.

#Allowed in

#Examples

point(x: 1; y: 2)
point(x: -3; y: 1; size: 8; colour: orange)