Fix calculation of tick height in trigonometric scales.