Skip to content

Commit d951f6a

Browse files
committed
no need to labelStandoff when showticklabels is false
1 parent fe20694 commit d951f6a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/plots/cartesian/axes.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,10 +1705,8 @@ axes.doTicks = function(gd, axid, skipTitle) {
17051705
labelShift = ax.ticklen * Math.sin(caRad);
17061706
}
17071707

1708-
if(ax.ticks === 'outside' || ax.showline) {
1709-
var tickFontSize = ax.tickfont ? ax.tickfont.size : 12;
1710-
1711-
labelStandoff += 0.2 * tickFontSize;
1708+
if(ax.showticklabels && (ax.ticks === 'outside' || ax.showline)) {
1709+
labelStandoff += 0.2 * ax.tickfont.size;
17121710
}
17131711

17141712
// positioning arguments for x vs y axes

0 commit comments

Comments
 (0)