axis.label

axis.labelNode

A value on an axis, named: it puts a name where the tick number would have gone and removes the number — a period, a mean, a boundary, a solution. The axis is chosen by which coordinate is given, as a point takes x and y. line: true adds a rule across the plot at that value, under the marks.

Writing with it:Framing a readable graph

#Attributes

On any plane

labelRequiredImplicit
Also written: text, nameThe name itself — rich text, so $\pi$ sets as maths.Can be written as shorthand: axis.label:value
lineAnimatable
Also written: rule, gridlineA rule across the plot at that value, drawn under the marks.
Defaultfalse
dashed
Whether that rule is dashed.
Defaulttrue
sizeAnimatable
Also written: text-sizeText size, in the graph's points. The default is the tick numbers' size; a mark's label is 20.
Default16
colourAnimatable
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
Also written: colorThe name, and its rule.
Defaultneutral
hiddenAnimatable
Declared and framed, but not drawn.
Defaultfalse
Only withxplane
xAnimatable
The value on the x axis to name — a number or expression, or a name on a categorical axis (x: Wed). Give this OR y, never both.
Only withxyplane
xAnimatable
The value on the x axis to name — a number or expression, or a name on a categorical axis (x: Wed). Give this OR y, never both.
yAnimatable
The value on the y axis to name — a number or expression, or a name on a categorical axis (y: Wed). Give this OR x, never both.
Only withargandplane
reAnimatable
On the argand plane, the place on the real axis; naming it selects the axis.
imAnimatable
On the argand plane, the place on the imaginary axis; naming it selects the axis.
Only withpolarplane
rAnimatable
On the polar plane, the place on the r axis; naming it selects the axis.
thetaAnimatable
On the polar plane, the place on the theta axis, in radians (60deg for degrees) or a name; naming it selects the axis.

#Allowed in

#Examples

axis.label(x: 3.1416; label: $\pi$)
axis.label(y: 1; label: $1$; line: true; colour: teal)
axis.label(x: 1.5708; label: $\tfrac{\pi}{2}$; line: true; dashed: false)