Skip to content

Commit 55ee4b3

Browse files
committed
Take config.plotGlPixelRatio into account for splom trace
1 parent aa67a7f commit 55ee4b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/traces/splom/plot.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ function plotOne(gd, cd0) {
6464
}
6565
}
6666

67-
viewOpts.viewport = [gs.l, gs.b, gs.w + gs.l, gs.h + gs.b];
67+
var plotGlPixelRatio = gd._context.plotGlPixelRatio;
68+
var l = gs.l * plotGlPixelRatio;
69+
var b = gs.b * plotGlPixelRatio;
70+
var w = gs.w * plotGlPixelRatio;
71+
var h = gs.h * plotGlPixelRatio;
72+
73+
viewOpts.viewport = [l, b, w + l, h + b];
6874

6975
if(scene.matrix === true) {
7076
scene.matrix = createMatrix(regl);

0 commit comments

Comments
 (0)