Skip to content

Commit 3aa298b

Browse files
committed
grid: Draw grid behind spine
1 parent 7b3e121 commit 3aa298b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/spine/scientific.typ

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@
6969

7070
draw.group(name: "spine", {
7171
for (ax, dir, grid-length, proj, style, mirror) in axes {
72-
draw.on-layer(style.axis-layer, {
73-
draw.line(proj(ax.min), proj(ax.max), stroke: style.stroke, mark: style.mark)
74-
})
7572
if "computed-ticks" in ax {
7673
if not mirror {
7774
grid.draw-cartesian(proj, 0, grid-length, dir, ax.computed-ticks, style.grid, ax.grid)
7875
}
7976
ticks.draw-cartesian(proj, dir, ax.computed-ticks, style, is-mirror: mirror)
8077
}
78+
draw.on-layer(style.axis-layer, {
79+
draw.line(proj(ax.min), proj(ax.max), stroke: style.stroke, mark: style.mark)
80+
})
8181
}
8282
})
8383

tests/plot/grid/ref/1.png

-16 Bytes
Loading

0 commit comments

Comments
 (0)