Skip to content

Commit

Permalink
Merge pull request #17 from cetz-package/plot-13-flipped-axis-marks
Browse files Browse the repository at this point in the history
tests: Add test for marks on reversed axes
  • Loading branch information
johannes-wolf authored Jul 15, 2024
2 parents 94dfd1e + 3f89767 commit 01ed4e2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Binary file added tests/plot/marks/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.
30 changes: 30 additions & 0 deletions tests/plot/marks/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#set page(width: auto, height: auto)
#import "/src/cetz.typ": *
#import "/src/lib.typ" as cetz-plot
#import "/tests/helper.typ": *

// cetz-plot #13
#test-case({
import cetz-plot: plot

let axis-options = (("x", "y"), ("x2", "y"), ("x", "y2"), ("x2", "y2"))

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,
for axes in axis-options {
plot.add(
axes: axes,
mark: "o",
((0.1,0.1), (0.4,0.4))
)
}
)
})

0 comments on commit 01ed4e2

Please sign in to comment.