{
var markCircleR, markCircleZ, markDataInv;
{
const polygon = mkCirclePolygon(circleR);
markCircleR = Plot.link(polygon, {
x1: "x1",
x2: "x2",
y1: "y1",
y2: "y2"
});
}
{
const { polygon } = circleZ;
markCircleZ = Plot.dot(polygon, {
x: "x",
y: "y",
fill: "idx",
r: 2,
tip: true
});
}
{
markDataInv = Plot.dot(dataInv, {
x: "x",
y: "y",
stroke: "idx",
strokeWidth: 1.0,
tip: true
});
}
return Plot.plot({
grid: true,
aspectRatio: 1.0,
x: { nice: true, domain: [-1, 3] },
y: { nice: true, domain: [-1, 1] },
color: { nice: true, legend: true },
marks: [markCircleR, markCircleZ, markDataInv]
});
}