data = {
const resolution = 800;
const range = 3;
const invertedLattice = d3.cross(
d3.range(-range, range, 2*range/resolution).reverse(),
d3.range(-range, range, 2*range/resolution)
).map(coord => method(...convert(...coord.reverse())));
return math.reshape(invertedLattice, [resolution, resolution]);
}