Skip to content

Commit 13a32d7

Browse files
committed
Heatmap: Fix render bug when zsmooth: 'fast'
1 parent 716a621 commit 13a32d7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/traces/heatmap/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function plotOne(gd, plotinfo, cd) {
323323
for(j = 0; j < m; j++) {
324324
row = z[j];
325325
yb = ypx(j);
326-
for(i = 0; i < n; i++) {
326+
for(i = 0; i < imageWidth; i++) {
327327
c = setColor(row[i], 1);
328328
pxIndex = (yb * imageWidth + xpx(i)) * 4;
329329
putColor(pixels, pxIndex, c);
69.3 KB
Loading

test/image/mocks/Earth_heatmap.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2604,7 +2604,8 @@
26042604
]
26052605
],
26062606
"scl": "Earth",
2607-
"type": "heatmap"
2607+
"type": "heatmap",
2608+
"zsmooth": "fast"
26082609
}
26092610
],
26102611
"layout": {

0 commit comments

Comments
 (0)