File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,8 @@ exports.lsInner = function(gd) {
7979 return ;
8080 }
8181
82- var xa = Plotly . Axes . getFromId ( gd , subplot , 'x' ) ;
83- var ya = Plotly . Axes . getFromId ( gd , subplot , 'y' ) ;
84- var xDomain = xa . domain ;
85- var yDomain = ya . domain ;
82+ var xDomain = plotinfo . xaxis . domain ;
83+ var yDomain = plotinfo . yaxis . domain ;
8684 var plotgroupBgData = [ ] ;
8785
8886 if ( overlappingDomain ( xDomain , yDomain , lowerDomains ) ) {
@@ -127,9 +125,8 @@ exports.lsInner = function(gd) {
127125 var freefinished = [ ] ;
128126 subplotSelection . each ( function ( subplot ) {
129127 var plotinfo = fullLayout . _plots [ subplot ] ;
130-
131- var xa = Plotly . Axes . getFromId ( gd , subplot , 'x' ) ;
132- var ya = Plotly . Axes . getFromId ( gd , subplot , 'y' ) ;
128+ var xa = plotinfo . xaxis ;
129+ var ya = plotinfo . yaxis ;
133130
134131 // reset scale in case the margins have changed
135132 xa . setScale ( ) ;
You can’t perform that action at this time.
0 commit comments