Skip to content

Commit b0a2053

Browse files
emilyklarchmoj
authored andcommitted
ensure grid lines are drawn on main subplot
1 parent 001457c commit b0a2053

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/plots/cartesian/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,16 @@ function makeSubplotLayer(gd, plotinfo) {
621621
plotinfo.yaxislayer = plotgroup.select('.yaxislayer-' + yLayer);
622622
}
623623
}
624+
625+
if(fullLayout._zindices.length > 1) {
626+
var mainplotinfo = plotinfo.mainplotinfo;
627+
if(mainplotinfo) {
628+
plotinfo.minorGridlayer = mainplotinfo.minorGridlayer;
629+
plotinfo.gridlayer = mainplotinfo.gridlayer;
630+
plotinfo.zerolinelayer = mainplotinfo.zerolinelayer;
631+
}
632+
}
633+
624634
} else {
625635
var mainplotinfo = plotinfo.mainplotinfo;
626636
var mainplotgroup = mainplotinfo.plotgroup;

0 commit comments

Comments
 (0)