plot = ([s, n]) =>
Plot.plot({
marks: [
Plot.line(d3.range(s, s + n, Math.ceil(n / 1e4)), {
x: (d) => d,
y: run,
}),
Plot.tip(
d3.range(s, s + n, Math.ceil(n / 1e4)),
Plot.selectMinY({
x: (d) => d,
y: run,
format: { x: format, y: format },
title: { x: true, y: true }
})
)
],
grid: true,
x: { tickFormat: "s", label: "Seed" },
y: { tickFormat: "s", type: "log", label: "Location" },
color: { type: "categorical" },
width
})