consistency: dims.xmin, dims.xmax are outer edges of bins (same for y)