Plot.plot({
aspectRatio: 1,
x: {tickSpacing: 80, label: "x →"},
y: {tickSpacing: 80, label: "↑ y"},
color: {type: "diverging", legend: true, label: "sin(x) cos(y)"},
marks: [
Plot.contour({
fill: (x, y) => Math.sin(x) * Math.cos(y),
x1: 0,
y1: 0,
x2: 6 * Math.PI,
y2: 4 * Math.PI
})
]
})