Skip to content

Commit 2ceede1

Browse files
committed
don't try to style plot bg in gl2d case
- ... to make image test pass
1 parent 6ac722d commit 2ceede1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plot_api/subroutines.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,16 @@ exports.lsInner = function(gd) {
126126

127127
var freefinished = [];
128128
subplotSelection.each(function(subplot) {
129-
var plotinfo = fullLayout._plots[subplot],
130-
xa = Plotly.Axes.getFromId(gd, subplot, 'x'),
129+
var plotinfo = fullLayout._plots[subplot];
130+
131+
var xa = Plotly.Axes.getFromId(gd, subplot, 'x'),
131132
ya = Plotly.Axes.getFromId(gd, subplot, 'y');
132133

133134
// reset scale in case the margins have changed
134135
xa.setScale();
135136
ya.setScale();
136137

137-
if(plotinfo.bg) {
138+
if(plotinfo.bg && fullLayout._has('cartesian')) {
138139
plotinfo.bg
139140
.call(Drawing.setRect,
140141
xa._offset - gs.p, ya._offset - gs.p,

0 commit comments

Comments
 (0)