Skip to content

Commit

Permalink
grid: Draw grid behind spine
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Dec 5, 2024
1 parent 7b3e121 commit 3aa298b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spine/scientific.typ
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@

draw.group(name: "spine", {
for (ax, dir, grid-length, proj, style, mirror) in axes {
draw.on-layer(style.axis-layer, {
draw.line(proj(ax.min), proj(ax.max), stroke: style.stroke, mark: style.mark)
})
if "computed-ticks" in ax {
if not mirror {
grid.draw-cartesian(proj, 0, grid-length, dir, ax.computed-ticks, style.grid, ax.grid)
}
ticks.draw-cartesian(proj, dir, ax.computed-ticks, style, is-mirror: mirror)
}
draw.on-layer(style.axis-layer, {
draw.line(proj(ax.min), proj(ax.max), stroke: style.stroke, mark: style.mark)
})
}
})

Expand Down
Binary file modified tests/plot/grid/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3aa298b

Please sign in to comment.