From f506306b439db46e2f9de421aaddfb0d225ed988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Tue, 24 Sep 2019 17:40:56 -0400 Subject: [PATCH] use (xl,xr,yt,yb) instead of (x,y) as push margin coordinates ... this enables an axis to push the margin on both side of its span --- src/plots/cartesian/axes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js index c4bb577a8f8..14d810eb831 100644 --- a/src/plots/cartesian/axes.js +++ b/src/plots/cartesian/axes.js @@ -1897,12 +1897,12 @@ axes.drawOne = function(gd, ax, opts) { if(llbbox.width > 0) { var rExtra = llbbox.right - (ax._offset + ax._length); if(rExtra > 0) { - push.x = 1; + push.xr = 1; push.r = rExtra; } var lExtra = ax._offset - llbbox.left; if(lExtra > 0) { - push.x = 0; + push.xl = 0; push.l = lExtra; } } @@ -1917,12 +1917,12 @@ axes.drawOne = function(gd, ax, opts) { if(llbbox.height > 0) { var bExtra = llbbox.bottom - (ax._offset + ax._length); if(bExtra > 0) { - push.y = 0; + push.yb = 0; push.b = bExtra; } var tExtra = ax._offset - llbbox.top; if(tExtra > 0) { - push.y = 1; + push.yt = 1; push.t = tExtra; } }