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) {
11711171 if ( subplots . indexOf ( sp ) === - 1 ) subplots . push ( sp ) ;
11721172 }
11731173
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
11751175 var axesList = axes . list ( gd , '' , true ) ;
11761176
11771177 function hasAx2 ( sp , ax2 ) {
@@ -1186,23 +1186,20 @@ axes.getSubplots = function(gd, ax) {
11861186 ax2 . anchor ,
11871187 ax3 = axes . getFromId ( gd , ax3Id ) ;
11881188
1189- // if a free axis is already represented in the data, ignore it
1189+ // look if ax2 is already represented in the data
11901190 var foundAx2 = false ;
11911191 for ( j = 0 ; j < subplots . length ; j ++ ) {
11921192 if ( hasAx2 ( subplots [ j ] , ax2 ) ) {
11931193 foundAx2 = true ;
11941194 break ;
11951195 }
11961196 }
1197+
1198+ // ignore free axes that already represented in the data
11971199 if ( ax2 . anchor === 'free' && foundAx2 ) continue ;
11981200
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 ;
12061203
12071204 sp = ( ax2Letter === 'x' ) ?
12081205 ax2 . _id + ax3 . _id :
You can’t perform that action at this time.
0 commit comments