Skip to content

Commit c53c18c

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

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/spine/scientific.typ

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,18 @@
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
}
8178
}
79+
for (ax, dir, grid-length, proj, style, mirror) in axes {
80+
draw.on-layer(style.axis-layer, {
81+
draw.line(proj(ax.min), proj(ax.max), stroke: style.stroke, mark: style.mark)
82+
})
83+
}
8284
})
8385

8486
let label-config = (

tests/plot/grid/ref/1.png

-521 Bytes
Loading

0 commit comments

Comments
 (0)