grid

A scene's canvas laid out in rows and columns, up to three by three: small multiples — Anscombe's four sets side by side, a residual plot beside its QQ plot — or two panes side by side whatever the width, where a plain split would stack them. Its body holds only canvas environments, read across then down; a scene with a grid holds all its environments in it. Each pane keeps its own frame, cues and steps, and the scene's parameters reach every one.

gridNode
Anscombe's quartet in a two-by-two grid: four scatters with the same mean, variance and fitted line, one a cloud, one a curve, one a line with an outlier, one a column with a single far point.Anscombe's quartet in a two-by-two grid: four scatters with the same mean, variance and fitted line, one a cloud, one a curve, one a line with an outlier, one a column with a single far point.

#Attributes

columnsImplicit
How many panes across. Unwritten, the layout nearest square: one for one pane, two for up to four, three past that. The head form — grid:3{…}.
123
enum
Can be written as shorthand: grid:value

#Allowed content

#Allowed in

#Examples

A grid of two: the unit disc beside the parallelepiped spanned by three columns, with the area formula written under the grid, across the whole canvas.A grid of two: the unit disc beside the parallelepiped spanned by three columns, with the area formula written under the grid, across the whole canvas.
grid{
    graph{
        curve(x: cos(t); y: sin(t); t: [0, 2 * pi]; colour: purple; fill)
    }
    graph:xyz{
        vector(dx: 1; dy: 0; dz: -2; colour: blue)
        vector(dx: 1; dy: 2; dz: 4; colour: teal)
        vector(dx: 7; dy: 1; dz: 0; colour: red)
    }(
        aspect: equal
    )
}

equation{
    \text{area of } T(S) = |\det A| \cdot \text{area of } S
}

Last updated