Manual
Overview
Language
IntroductionScenes & structureText & inlineGraphsCode panesAnimationDataReuse & logicExpressions & parameters
Elements
Text
ParagraphHeading 1Heading 2Heading 3Heading 4Unordered ListDivider
Media
ImageTableEquation
Callouts
NoteDefinitionExampleTask
Graph
GraphLinePolygonCurveIntegralScatterHistogramPointSegmentVectorCircleSquareRectangleTriangleStarDiamondHexagonTextAxis labelAxis BraceFitResidualsContourHeatmapParameter
Code
Code canvasLines
Animation
CueDraw cueTrace cueHighlight cueSpotlight cueType cue
Structure
SceneStep
Reference
Internote Reference
Inline
Formatting
BoldItalicsInline CodeHighlightLink
Text colour
Red textOrange textYellow textGreen textTeal textBlue textPurple textPink textGrey text
Maths
Maths
Reference
Internote ReferenceValueConstant
Other
FootnoteIcon
Directives
DatasetIncludeConstantsTemplatePresetConditionalForIgnore
Keyframes
KeyframeZoom keyframe
Attribute types
?
  1. Elements
  2. Graph
  3. Axis Brace

Axis Brace

axis.braceBlock elementGraph

Names an interval on an axis with a curly brace, drawn in the gutter beside the tick numbers — the way a graph says "this span is σ" rather than marking two endpoints and leaving the subtraction to the reader. The axis is chosen by which interval is given, like axis.label's coordinate.

Attributes

labelRequiredImplicit
Also written: text, nameThe name at the brace's tip. Rich text, so $\sigma$ sets as maths.The head shorthand supplies it: axis.brace:value
x
The interval to brace along the x axis, e.g. [m, m + s]. Give exactly one of x or y.
y
The interval to brace along the y axis.
flip
Draw on the opposite side of the axis from the tick numbers.
Defaultfalse
size
Also written: text-sizeLabel text size.
Default20
width
Stroke width.
Default1.5
colour
Also written: colorBrace and label colour.
Defaultneutral
hidden
Declared but not drawn. Animatable, for reveals.
Defaultfalse

Examples

axis.brace(label: $\sigma$; x: [m, m + s]; colour: grey)
axis.brace:$h$(y: [0, 4]; flip: true)
On this page
AttributesExamples
Axis Brace · Internote