Skip to content

Commit e86cfea

Browse files
subplot-compatible generalization
1 parent eda678d commit e86cfea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/axes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,8 +2108,8 @@ axes.doTicks = function(gd, axid, skipTitle) {
21082108
if(!ax._marginPush || ax._marginPush < marginPush) {
21092109
ax._marginPush = marginPush;
21102110
var pushParams = {
2111-
x: ax.side[0] === 'r' ? 1 : 0,
2112-
y: ax.side[0] === 't' ? 1 : 0,
2111+
x: ax.side[0] === 'r' ? ax.domain[1] : ax.domain[0],
2112+
y: ax.side[0] === 't' ? ax.domain[1] : ax.domain[0],
21132113
r: 0, l: 0, t: 0, b: 0};
21142114
pushParams[ax.side[0]] = marginPush;
21152115
Plots.autoMargin(gd, ax._name, pushParams);

0 commit comments

Comments
 (0)