|
1 | 1 | #import "/src/cetz.typ": util, draw, vector, matrix, styles, process, drawable, path-util, process
|
2 | 2 | #import "/src/plot/formats.typ"
|
3 | 3 |
|
4 |
| -/// Default axis style |
5 |
| -/// |
6 |
| -/// #show-parameter-block("tick-limit", "int", default: 100, [Upper major tick limit.]) |
7 |
| -/// #show-parameter-block("minor-tick-limit", "int", default: 1000, [Upper minor tick limit.]) |
8 |
| -/// #show-parameter-block("auto-tick-factors", "array", [List of tick factors used for automatic tick step determination.]) |
9 |
| -/// #show-parameter-block("auto-tick-count", "int", [Number of ticks to generate by default.]) |
10 |
| -/// #show-parameter-block("stroke", "stroke", [Axis stroke style.]) |
11 |
| -/// #show-parameter-block("label.offset", "number", [Distance to move axis labels away from the axis.]) |
12 |
| -/// #show-parameter-block("label.anchor", "anchor", [Anchor of the axis label to use for it's placement.]) |
13 |
| -/// #show-parameter-block("label.angle", "angle", [Angle of the axis label.]) |
14 |
| -/// #show-parameter-block("axis-layer", "float", [Layer to draw axes on (see @@on-layer() )]) |
15 |
| -/// #show-parameter-block("grid-layer", "float", [Layer to draw the grid on (see @@on-layer() )]) |
16 |
| -/// #show-parameter-block("background-layer", "float", [Layer to draw the background on (see @@on-layer() )]) |
17 |
| -/// #show-parameter-block("padding", "number", [Extra distance between axes and plotting area. For schoolbook axes, this is the length of how much axes grow out of the plotting area.]) |
18 |
| -/// #show-parameter-block("overshoot", "number", [School-book style axes only: Extra length to add to the end (right, top) of axes.]) |
19 |
| -/// #show-parameter-block("tick.stroke", "stroke", [Major tick stroke style.]) |
20 |
| -/// #show-parameter-block("tick.minor-stroke", "stroke", [Minor tick stroke style.]) |
21 |
| -/// #show-parameter-block("tick.offset", ("number", "ratio"), [Major tick offset along the tick's direction, can be relative to the length.]) |
22 |
| -/// #show-parameter-block("tick.minor-offset", ("number", "ratio"), [Minor tick offset along the tick's direction, can be relative to the length.]) |
23 |
| -/// #show-parameter-block("tick.length", ("number"), [Major tick length.]) |
24 |
| -/// #show-parameter-block("tick.minor-length", ("number", "ratio"), [Minor tick length, can be relative to the major tick length.]) |
25 |
| -/// #show-parameter-block("tick.label.offset", ("number"), [Major tick label offset away from the tick.]) |
26 |
| -/// #show-parameter-block("tick.label.angle", ("angle"), [Major tick label angle.]) |
27 |
| -/// #show-parameter-block("tick.label.anchor", ("anchor"), [Anchor of major tick labels used for positioning.]) |
28 |
| -/// #show-parameter-block("tick.label.show", ("auto", "bool"), default: auto, [Set visibility of tick labels. A value of `auto` shows tick labels for all but mirrored axes.]) |
29 |
| -/// #show-parameter-block("grid.stroke", "stroke", [Major grid line stroke style.]) |
30 |
| -/// #show-parameter-block("break-point.width", "number", [Axis break width along the axis.]) |
31 |
| -/// #show-parameter-block("break-point.length", "number", [Axis break length.]) |
32 |
| -/// #show-parameter-block("minor-grid.stroke", "stroke", [Minor grid line stroke style.]) |
33 |
| -/// #show-parameter-block("shared-zero", ("bool", "content"), default: "$0$", [School-book style axes only: Content to display at the plots origin (0,0). If set to `false`, nothing is shown. Having this set, suppresses auto-generated ticks for $0$!]) |
34 | 4 | #let default-style = (
|
35 | 5 | tick-limit: 100,
|
36 | 6 | minor-tick-limit: 1000,
|
|
0 commit comments