When plotting in log mode, there is no way for the y-axis to go below 1e-6. Note that also the y-tick-step is necessary, as otherwise the compilation crashes due to too many ticks (is this a bug?)
Document
#import "@preview/cetz-plot:0.1.0": plot
#import "@preview/cetz:0.3.1"
#set page(width: auto, height: auto, margin: 5mm)
#cetz.canvas(
{
plot.plot(
size: (6, 3),
y-mode: "log",
y-format: "sci",
y-tick-step: 1,
y-min: 1e-7,
{
plot.add((
(0, 1e-7),
(1, 1e-6),
(2, 1e-2),
),
mark: "o"
)
}
)
}
)

When plotting in
logmode, there is no way for the y-axis to go below 1e-6. Note that also they-tick-stepis necessary, as otherwise the compilation crashes due to too many ticks (is this a bug?)Document