Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrswift committed Jul 26, 2024
1 parent fc9572a commit 25e404f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/axes.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 4 additions & 8 deletions tests/plot/marks/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Binary file modified tests/plot/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 25e404f

Please sign in to comment.