Skip to content

Commit 10bf4b4

Browse files
committed
scientific: Do not draw mirrored axis labels
1 parent 19def48 commit 10bf4b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spine/scientific.typ

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
)
9090
for (i, (side, default-anchor, default-angle)) in label-config.enumerate() {
9191
let (ax, dir, _, proj, style, mirror) = axes.at(i)
92-
if ax.label != none and ax.label != [] {
92+
if not mirror and ax.label != none and ax.label != [] {
9393
let pos = proj((ax.max + ax.min) / 2)
9494
let offset = vector.scale(dir, -style.label.offset)
9595
let is-horizontal = calc.rem(i, 2) == 0

0 commit comments

Comments
 (0)