Skip to content

Axis

A language for Desmos graphs. Write a file, get a graph - with an editor that graphs it as you type.
config { showGrid: true; degreeMode: false }
style bold { lineWidth: 4 }
macro bell(s) = e ^ (-x ^ 2 / s)
"Basic functions"
f(x) = x ^ 2 - 4x + 3 @ color: RED
g(x) = sin(x) + cos(2x) @ color: BLUE, use: bold
a = 1 @ slider: 0.5..4 step 0.5
h(x) = bell(a) @{
color: GREEN
lineStyle: DASHED
label: "a bell"
}
n = 0
ticker n -> n + dt / 1000 @ playing
Open in playground →

Text, not clicks

A graph is a file: diff it, review it, import one into another, keep it in git. Folders, tables, notes, sliders, click actions and the ticker are all statements.

Styling that stays put

@ color: RED, lineStyle: DASHED trails what it styles, and a style names a set of properties to reuse with use:.

An editor that knows it

The VSCode extension completes, hovers, formats and checks as you type, and previews the graph beside the file - drag a point there and the file catches up.

Checked against Desmos

Every example on this site is compiled and then drawn on a real Desmos calculator before it is published.