Skip to content

Commit

Permalink
add logarithmic axes test pt1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrswift committed Aug 1, 2024
1 parent 31fdf46 commit 2fd9cb1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions tests/plots/orthorect-2d/logarithmic-axes/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#set page(width: auto, height: auto, margin: 1cm)
#import "/tests/helper.typ": *

#test-case({

cetz-plot.plot(
size: (9, 6),
y-mode: "log", y-base: 10,
y-format: "sci",
x-min: 1, x-max: 10, x-tick-step: 1,
y-min: 1, y-max: 10000, y-tick-step: 1, y-minor-tick-step: 1,
x-grid: "both",
y-grid: "both",
{
cetz-plot.add.xy(
domain: (0, 10),
x => {calc.pow(10, x)},
samples: 100,
line: "raw",
label: $y=10^x$
)
cetz-plot.add.xy(
domain: (1, 10),
x => {x},
samples: 100,
line: "raw",
hypograph: true,
label: $y=x$
)
}
)

})

0 comments on commit 2fd9cb1

Please sign in to comment.