Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 692b970

Browse files
committed
remove 0.5px pad on showline:false + ticks:'outside' axes
1 parent cbb3b7d commit 692b970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ axes.makeTickPath = function(ax, shift, sgn, len) {
20462046
len = len !== undefined ? len : ax.ticklen;
20472047

20482048
var axLetter = ax._id.charAt(0);
2049-
var pad = (ax.linewidth || 1) / 2;
2049+
var pad = (ax.linewidth || (ax.ticks === 'outside' ? 0 : 1)) / 2;
20502050

20512051
return axLetter === 'x' ?
20522052
'M0,' + (shift + pad * sgn) + 'v' + (len * sgn) :

0 commit comments

Comments
 (0)