Skip to content

Commit 51813f9

Browse files
committed
match minor.tick0 with main tick0
1 parent c4c4c5c commit 51813f9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/plots/cartesian/axes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,16 @@ axes.calcTicks = function calcTicks(ax, opts) {
851851
if(!ax.minor.dtick) {
852852
mockAx._majorDtick = ax.dtick;
853853
mockAx.dtick = mockAx._dtickInit;
854+
mockAx.tick0 = mockAx._tick0Init;
854855
}
855856
}
856857

857858
if(isMinor) {
858859
axes.prepMinorTicks(mockAx);
860+
if(mockAx.tick0 !== ax.tick0 && ax.minor._tick0Init === undefined) {
861+
// ensure identical tick0
862+
mockAx.tick0 = ax.tick0;
863+
}
859864
} else {
860865
axes.prepTicks(mockAx, opts);
861866
}
-1.26 KB
Loading

0 commit comments

Comments
 (0)