Skip to content

Commit 35d501d

Browse files
committed
handle splom Axes.expand calls w/ undefined xa/ya
1 parent b1911b3 commit 35d501d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/plots/cartesian/autorange.js

+1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ function doAutoRange(ax) {
232232
* and make it a tight bound if possible
233233
*/
234234
function expand(ax, data, options) {
235+
235236
if(!ax._min) ax._min = [];
236237
if(!ax._max) ax._max = [];
237238
if(!options) options = {};

src/traces/scatter/calc.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ function calcAxisExpansion(gd, trace, xa, ya, x, y, ppad) {
9696
yOptions.padded = false;
9797
}
9898

99-
Axes.expand(xa, x, xOptions);
100-
Axes.expand(ya, y, yOptions);
99+
// N.B. asymmetric splom traces call this with undefined xa or ya
100+
if(xa._id) Axes.expand(xa, x, xOptions);
101+
if(ya._id) Axes.expand(ya, y, yOptions);
101102
}
102103

103104
function calcMarkerSize(trace, serieslen) {

0 commit comments

Comments
 (0)