multi-plot directive#
The multi-plot directive builds a grid of static plots from a list of function expressions. All plots share the same axis limits and styling.
Basic usage#
:::{multi-plot}
functions: [x**2, sin(x), exp(x)]
rows: 1
cols: 3
xmin: -3
xmax: 3
width: 100%
:::
Syntax overview#
The functions key accepts a Python-style list of expressions. Each expression gets its own subplot in the grid.
Options#
Option |
Meaning |
Default |
|---|---|---|
|
List of function expressions (e.g. |
(required) |
|
Display labels for the functions |
auto |
|
Number of grid rows |
auto |
|
Number of grid columns |
auto |
|
Per-function x-ranges |
— |
|
Shared axis limits |
auto |
|
Tick spacing |
auto |
|
Font size |
— |
|
Line width |
— |
|
Line alpha |
— |
|
Show grid lines |
— |
|
Show ticks |
— |
|
CSS width |
— |
|
|
— |
|
Drawing primitives shared across panels |
— |
|
Points shared across panels |
— |
|
Text annotations shared across panels |
— |
|
Arrow annotations shared across panels |
— |
|
Tangent lines shared across panels |
— |
|
Extra CSS classes |
— |
|
Stable anchor / reference name |
— |
|
Alt text |
— |
|
Force regeneration |
— |
|
Keep debug output |
— |
Notes#
Aliases:
multiplot