{
const svg = d3.select(DOM.svg(width, height))
const position = 20
var palette = d3.interpolatePlasma;
svg.selectAll("rect").data(matrix).enter().append("rect")
.attr("x", d=>d[0]*position)
.attr("y", d=>d[1]*position)
.attr("width", position )
.attr("height", position )
.style("fill", d=>palette(d[2]))
.style("stroke", "white")
yield svg.node();
}