Plot.plot({
height: 640,
axis: null,
x: { domain: [-250, 250] },
y: { domain: [-50, 450] },
color: {
type: "log",
range: ["steelblue", "orange"],
legend: true,
interpolate: "hcl",
label: "Made shots"
},
marks: [
Plot.rect(
shots,
Plot.bin(
{ fill: "count" },
{
x: "loc_x",
y: "loc_y",
filter: (d) => +d.shot_made_flag,
inset: 0,
interval: 5
}
)),
markings()
]
})