We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac722d commit 2ceede1Copy full SHA for 2ceede1
src/plot_api/subroutines.js
@@ -126,15 +126,16 @@ exports.lsInner = function(gd) {
126
127
var freefinished = [];
128
subplotSelection.each(function(subplot) {
129
- var plotinfo = fullLayout._plots[subplot],
130
- xa = Plotly.Axes.getFromId(gd, subplot, 'x'),
+ var plotinfo = fullLayout._plots[subplot];
+
131
+ var xa = Plotly.Axes.getFromId(gd, subplot, 'x'),
132
ya = Plotly.Axes.getFromId(gd, subplot, 'y');
133
134
// reset scale in case the margins have changed
135
xa.setScale();
136
ya.setScale();
137
- if(plotinfo.bg) {
138
+ if(plotinfo.bg && fullLayout._has('cartesian')) {
139
plotinfo.bg
140
.call(Drawing.setRect,
141
xa._offset - gs.p, ya._offset - gs.p,
0 commit comments