Axis label
axis.labelBlock elementGraph
A value on an axis, named. It puts a name where the number would have gone and takes the number away — the way to mark what a reader should recognise: 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.
Attributes
labelRequiredImplicit
rich-textThe value on the x axis to name. Give this OR y, never both.
The value on the y axis to name.
line
booleanDefaultfalse
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)