Skip to content

Commit e0eba2b

Browse files
committed
Fix splom grid spacing
1 parent b4abfb2 commit e0eba2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/traces/splom/base_plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ function makeGridData(gd) {
138138

139139
if(xa.showgrid) {
140140
for(k = 0; k < xVals.length; k++) {
141-
x = xoffset + xa.l2p(xVals[k].x);
141+
x = xoffset + xa.l2p(xVals[k].x) * plotGlPixelRatio;
142142
push('grid', xa, x, yOffset, x, yOffset + ylength);
143143
}
144144
}
145145
if(ya.showgrid) {
146146
for(k = 0; k < yVals.length; k++) {
147-
y = yOffset + yb + ym * yVals[k].x;
147+
y = yOffset + yb + ym * yVals[k].x * plotGlPixelRatio;
148148
push('grid', ya, xoffset, y, xoffset + xlength, y);
149149
}
150150
}

test/image/baselines/splom_large.png

93.5 KB
Loading

0 commit comments

Comments
 (0)