File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -820,14 +820,19 @@ axes.calcTicks = function calcTicks(ax, opts) {
820
820
821
821
var mockAx = major ? ax : Lib . extendFlat ( { } , ax , ax . minor ) ;
822
822
823
- if ( isMinor && ax . minor && ! ax . minor . dtick ) {
824
- mockAx . _majorDtick = ax . dtick ;
823
+ if ( isMinor && ax . minor ) {
824
+ if ( ! ax . minor . dtick ) {
825
+ mockAx . _majorDtick = ax . dtick ;
825
826
826
- mockAx . dtick = mockAx . _dtickInit ;
827
- mockAx . tick0 = mockAx . _tick0Init ;
827
+ mockAx . dtick = mockAx . _dtickInit ;
828
+ mockAx . tick0 = mockAx . _tick0Init ;
829
+ }
828
830
}
829
831
830
- axes . prepTicks ( mockAx , opts , isMinor ) ;
832
+ axes . prepTicks ( mockAx , opts ,
833
+ isMinor &&
834
+ ax . tickmode !== 'array' // avoid dense grid when main axes has tickvals
835
+ ) ;
831
836
832
837
// now that we've figured out the auto values for formatting
833
838
// in case we're missing some ticktext, we can break out for array ticks
@@ -839,7 +844,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
839
844
minorTickVals = [ ] ;
840
845
minorTicks = arrayTicks ( ax ) ;
841
846
}
842
- break ;
847
+ continue ;
843
848
}
844
849
845
850
// add a tiny bit so we get ticks which may have rounded out
You can’t perform that action at this time.
0 commit comments