We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa67a7f commit 55ee4b3Copy full SHA for 55ee4b3
src/traces/splom/plot.js
@@ -64,7 +64,13 @@ function plotOne(gd, cd0) {
64
}
65
66
67
- viewOpts.viewport = [gs.l, gs.b, gs.w + gs.l, gs.h + gs.b];
+ 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];
74
75
if(scene.matrix === true) {
76
scene.matrix = createMatrix(regl);
0 commit comments