Updated calculation of tick mark locations