diff --git a/src/plot.typ b/src/plot.typ index 8bc6abb..1436f70 100644 --- a/src/plot.typ +++ b/src/plot.typ @@ -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) }) diff --git a/src/plot/boxwhisker.typ b/src/plot/boxwhisker.typ index facaa94..84f0521 100644 --- a/src/plot/boxwhisker.typ +++ b/src/plot/boxwhisker.typ @@ -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: (:) diff --git a/tests/plot/vertical/ref/1.png b/tests/plot/vertical/ref/1.png index 86d5a9d..a3869e8 100644 Binary files a/tests/plot/vertical/ref/1.png and b/tests/plot/vertical/ref/1.png differ