Correctly format the ticks.