{
let pic = contour_plot(
([x, y]) => G(x, y),
[
[-4, 4],
[-4, 4]
],
d3.range(-2.04, 1.4, 0.2),
{ w: width / 2, h: width / 2 }
);
d3.select(pic).on("click", function (evt) {
let [x, y] = d3.pointer(evt);
d3.select(pic).append("circle").attr("cx", x).attr("cy", y).attr("r", 5);
});
return pic;
}