Skip to content

Commit faec7ba

Browse files
committed
cartesian: look for subplot ids in fullData instead of data if present
- which is a more precise description than data, after than defaults step.
1 parent 05dd3a6 commit faec7ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plots/cartesian/axes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ axes.getSubplots = function(gd, ax) {
12071207
var i, j, sp;
12081208

12091209
// look for subplots in the data
1210-
var data = gd.data || [];
1210+
var data = gd._fullData || gd.data || [];
12111211

12121212
for(i = 0; i < data.length; i++) {
12131213
var trace = data[i];

src/plots/plots.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ plots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLa
569569
newSubplots = newFullLayout._plots = {};
570570

571571
var mockGd = {
572-
data: newFullData,
572+
_fullData: newFullData,
573573
_fullLayout: newFullLayout
574574
};
575575

0 commit comments

Comments
 (0)