From ab7136d087c32b24cfdf52f76a530d58d6db0ae0 Mon Sep 17 00:00:00 2001 From: archmoj Date: Tue, 27 Oct 2020 16:51:53 -0400 Subject: [PATCH] fix issue 5235 - do not try to style backgrounds when subplots still do not have ax._offset --- src/plot_api/subroutines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plot_api/subroutines.js b/src/plot_api/subroutines.js index 7b8fc4c1766..9769f214392 100644 --- a/src/plot_api/subroutines.js +++ b/src/plot_api/subroutines.js @@ -178,7 +178,7 @@ function lsInner(gd) { xa = plotinfo.xaxis; ya = plotinfo.yaxis; - if(plotinfo.bg) { + if(plotinfo.bg && xa._offset !== undefined && ya._offset !== undefined) { plotinfo.bg .call(Drawing.setRect, xa._offset - pad, ya._offset - pad,