1e682bf4a5e1776f9752d67e8becb2092926b5d5 max Sat Jul 12 02:46:18 2025 -0700 moving over Nan code, but knowing that there is a problem with the psi dataset diff --git src/cbPyLib/cellbrowser/cbWeb/js/maxPlot.js src/cbPyLib/cellbrowser/cbWeb/js/maxPlot.js index 6d6ee2f..49b312e 100644 --- src/cbPyLib/cellbrowser/cbWeb/js/maxPlot.js +++ src/cbPyLib/cellbrowser/cbWeb/js/maxPlot.js @@ -863,31 +863,31 @@ if (selCells.size!==0 || fatIdx!==null) //colors = makeAllGreyHex(colors.length); colors = hexToGrey(colors); var fatCells = []; // first draw all the cells with value 0. Poor mans approximation of a z index. // (Should be faster than sorting by z and drawing afterwards.) for (var i = 0; i < pxCoords.length/2; i++) { var pxX = pxCoords[2*i]; var pxY = pxCoords[2*i+1]; if (isHidden(pxX, pxY)) continue; var valIdx = coordColors[i]; - // only plot color 0 + // only plot color 0 (or -12345 (=NaN)) if (valIdx!==0) continue; var col = colors[valIdx]; if (fatIdx!==null) { if (valIdx===fatIdx) { // fattened cells must be overdrawn later, so just save their coords now fatCells.push(pxX); fatCells.push(pxY); continue } } ctx.fillStyle="#"+col; ctx.fillRect(pxX-radius, pxY-radius, dblSize, dblSize); count++;