Skip to content

Commit a2d12eb

Browse files
committed
try adding 'padding' from layout.margin
1 parent a33be40 commit a2d12eb

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

package-lock.json

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/traces/splom/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ function plot(gd, _, cdata) {
115115
opts.domains[i] = [xa.domain[0], ya.domain[0], xa.domain[1], ya.domain[1]];
116116
}
117117

118-
scene.scatterOpts.viewport = [gs.l, gs.b, fullLayout.width, fullLayout.height];
118+
scene.scatterOpts.viewport = [0, 0, fullLayout.width, fullLayout.height];
119+
scene.scatterOpts.padding = [gs.l, gs.t, gs.r, gs.b];
119120

120121
if(scene.matrix === true) {
121122
scene.matrix = createMatrix(regl);

0 commit comments

Comments
 (0)