Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ensure grid lines are drawn on main subplot
  • Loading branch information
emilykl authored and archmoj committed Sep 26, 2024
commit b0a2053054776881286c0e5d982ddd9e3c33608a
10 changes: 10 additions & 0 deletions src/plots/cartesian/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,16 @@ function makeSubplotLayer(gd, plotinfo) {
plotinfo.yaxislayer = plotgroup.select('.yaxislayer-' + yLayer);
}
}

if(fullLayout._zindices.length > 1) {
var mainplotinfo = plotinfo.mainplotinfo;
if(mainplotinfo) {
plotinfo.minorGridlayer = mainplotinfo.minorGridlayer;
plotinfo.gridlayer = mainplotinfo.gridlayer;
plotinfo.zerolinelayer = mainplotinfo.zerolinelayer;
}
}

} else {
var mainplotinfo = plotinfo.mainplotinfo;
var mainplotgroup = mainplotinfo.plotgroup;
Expand Down