It appears that the tick values in a quantile legend don't get rounded. Example:
Plot.barX([0,1,2,3], {fill: d => d}).plot({color: {type: "quantile", legend: true}})
Plot.barX([0,1,2,3,4,5,6], {fill: d => d}).plot({color: {type: "quantile", legend: true, n: 7}})
