Fix minor tick calculation: minor ticks before the first visible major tick were not being generated when they should have been.