Skip to content

Commit 5b495e6

Browse files
committed
plotinfo already has xaxis/yaxis stashed
1 parent fe1615b commit 5b495e6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/plot_api/subroutines.js

+4-7
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)