diff --git a/src/axes.typ b/src/axes.typ index a646468..a0e06ea 100644 --- a/src/axes.typ +++ b/src/axes.typ @@ -570,11 +570,9 @@ } else {n} let range = transform-func(axis.max) - transform-func(axis.min) - let low = transform-func(calc.min(axis.min, axis.max)) - let high = transform-func(calc.max(axis.min, axis.max)) let f = s / range - (transform-func(vec.at(dim) - low) * f + o,) + ((transform-func(vec.at(dim)) - transform-func(axis.min)) * f + o,) } return (x, y, 0) diff --git a/tests/plot/marks/test.typ b/tests/plot/marks/test.typ index 80ff318..7daba6c 100644 --- a/tests/plot/marks/test.typ +++ b/tests/plot/marks/test.typ @@ -11,14 +11,10 @@ plot.plot( size: (5,5), - x-min: 0, - x-max: 1, - y-min: 0, - y-max: 1, - x2-min: 1, - x2-max: 0, - y2-min: 1, - y2-max: 0, + x-min: 0, x-max: 1, + y-min: 0, y-max: 1, + x2-min: 1, x2-max: 0, + y2-min: 1, y2-max: 0, for axes in axis-options { plot.add( axes: axes, diff --git a/tests/plot/ref/1.png b/tests/plot/ref/1.png index f3e3a1c..81e2422 100644 Binary files a/tests/plot/ref/1.png and b/tests/plot/ref/1.png differ