Skip to content

Commit 4137433

Browse files
committed
place splom axes on bottom/left sides when just diagonal is missing
from empet's bug report: https://community.plot.ly/t/ticklabels-in-splom-with-diagonal-visible-false-are-translated/14196
1 parent ea38664 commit 4137433

File tree

3 files changed

+709
-3
lines changed

3 files changed

+709
-3
lines changed

src/traces/splom/defaults.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ function handleAxisDefaults(traceIn, traceOut, layout, coerce) {
158158
}
159159
}
160160

161-
// when lower half is omitted, override grid default
162-
// to make sure axes remain on the left/bottom of the plot area
163-
if(!showLower) {
161+
// when lower half is omitted, or when just the diagonal is gone,
162+
// override grid default to make sure axes remain on
163+
// the left/bottom of the plot area
164+
if(!showLower || (!showDiag && showUpper && showLower)) {
164165
layout._splomGridDflt.xside = 'bottom';
165166
layout._splomGridDflt.yside = 'left';
166167
}

test/image/baselines/splom_nodiag.png

61.5 KB
Loading

0 commit comments

Comments
 (0)