Skip to content

Commit 67b04e9

Browse files
ticklabelsautomargin -> automargin
1 parent 8d0a5eb commit 67b04e9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,7 @@ axes.doTicks = function(gd, axid, skipTitle) {
22222222
}
22232223

22242224
function doAutoMargins() {
2225-
if(!ax.ticklabelsautomargin) { return; }
2225+
if(!ax.automargin) { return; }
22262226
var marginPush = ax.titlefont.size +
22272227
(axLetter === 'x' ? ax._boundingBox.height : ax._boundingBox.width);
22282228

src/plots/cartesian/axis_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
8585

8686
if(containerOut.showline || containerOut.ticks) coerce('mirror');
8787

88-
if(options.automargin) coerce('ticklabelsautomargin');
88+
if(options.automargin) coerce('automargin');
8989

9090
return containerOut;
9191
};

src/plots/cartesian/layout_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ module.exports = {
344344
editType: 'ticks',
345345
description: 'Determines whether or not the tick labels are drawn.'
346346
},
347-
ticklabelsautomargin: {
347+
automargin: {
348348
valType: 'boolean',
349349
dflt: false,
350350
role: 'style',

test/image/mocks/long_axis_labels.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
}
2727
],
2828
"layout": {
29-
"xaxis": {"title": "X Axis Title", "titlefont": {"size": 80}, "ticklabelsautomargin": true},
30-
"yaxis": {"title": "Y Axis Title", "titlefont": {"size": 40}, "ticklen": 50, "ticklabelsautomargin": true},
29+
"xaxis": {"title": "X Axis Title", "titlefont": {"size": 80}, "automargin": true},
30+
"yaxis": {"title": "Y Axis Title", "titlefont": {"size": 40}, "ticklen": 50, "automargin": true},
3131
"yaxis2": {
3232
"title": "Y2 Axis Title",
3333
"overlaying": "y",
34-
"side": "right", "titlefont": {"size": 40}, "ticklabelsautomargin": true
34+
"side": "right", "titlefont": {"size": 40}, "automargin": true
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)