Skip to content

Commit a813e54

Browse files
committed
src/plots/get_data.js
1 parent 8516c78 commit a813e54

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/plots/get_data.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,10 @@ exports.getSubplotData = function getSubplotData(data, type, subplotId) {
9999
var subplotData = [];
100100
var trace, subplotX, subplotY;
101101

102-
if(type === 'gl2d') {
103-
var spmatch = subplotId.match(SUBPLOT_PATTERN);
104-
subplotX = 'x' + spmatch[1];
105-
subplotY = 'y' + spmatch[2];
106-
}
107-
108102
for(var i = 0; i < data.length; i++) {
109103
trace = data[i];
110104

111-
if(type === 'gl2d' && Registry.traceIs(trace, 'gl2d')) {
112-
if(trace[attr[0]] === subplotX && trace[attr[1]] === subplotY) {
113-
subplotData.push(trace);
114-
}
115-
} else {
116-
if(trace[attr] === subplotId) subplotData.push(trace);
117-
}
105+
if(trace[attr] === subplotId) subplotData.push(trace);
118106
}
119107

120108
return subplotData;

0 commit comments

Comments
 (0)