File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ axes.getSubplots = function(gd, ax) {
1171
1171
if ( subplots . indexOf ( sp ) === - 1 ) subplots . push ( sp ) ;
1172
1172
}
1173
1173
1174
- // look for subplots in the axes /anchors, so that we at least draw all axes
1174
+ // look for subplots in the xes /anchors, so that we at least draw all axes
1175
1175
var axesList = axes . list ( gd , '' , true ) ;
1176
1176
1177
1177
function hasAx2 ( sp , ax2 ) {
@@ -1186,23 +1186,20 @@ axes.getSubplots = function(gd, ax) {
1186
1186
ax2 . anchor ,
1187
1187
ax3 = axes . getFromId ( gd , ax3Id ) ;
1188
1188
1189
- // if a free axis is already represented in the data, ignore it
1189
+ // look if ax2 is already represented in the data
1190
1190
var foundAx2 = false ;
1191
1191
for ( j = 0 ; j < subplots . length ; j ++ ) {
1192
1192
if ( hasAx2 ( subplots [ j ] , ax2 ) ) {
1193
1193
foundAx2 = true ;
1194
1194
break ;
1195
1195
}
1196
1196
}
1197
+
1198
+ // ignore free axes that already represented in the data
1197
1199
if ( ax2 . anchor === 'free' && foundAx2 ) continue ;
1198
1200
1199
- if ( ! ax3 ) {
1200
- console . log ( [
1201
- 'Warning: couldnt find anchor' , ax3Id ,
1202
- 'for axis' , ax2 . _id
1203
- ] . join ( ' ' ) ) ;
1204
- return ;
1205
- }
1201
+ // ignore anchor-less axes
1202
+ if ( ! ax3 ) continue ;
1206
1203
1207
1204
sp = ( ax2Letter === 'x' ) ?
1208
1205
ax2 . _id + ax3 . _id :
You can’t perform that action at this time.
0 commit comments