Minor tick fix

This pull request ensures minor ticks are positioned correctly with `AutoMinorLocator`, fixing the bug described in issue #3557.