Skip to content

Commit

Permalink
plot: Fix mark axis handling
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Oct 19, 2024
1 parent b8df2e3 commit ed2ed08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plot.typ
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,14 @@
})

if "mark" in d and d.mark != none {
draw.group({
draw.scope({
if y.horizontal {
draw.set-ctx(ctx => {
ctx.transform = matrix.swap-cols(ctx.transform, 0, 1)
return ctx
})
}

draw.set-style(..d.style, ..d.mark-style)
mark.draw-mark(d.data, x, y, d.mark, d.mark-size, size)
})
Expand Down
1 change: 1 addition & 0 deletions src/plot/boxwhisker.typ
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
) + (if "outliers" in data { (
type: "boxwhisker-outliers",
data: data.outliers.map(it => (data.x, it)),
axes: axes,
mark: mark,
mark-size: mark-size,
mark-style: (:)
Expand Down
Binary file modified tests/plot/vertical/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 ed2ed08

Please sign in to comment.