fix the positioning of tick label when rotated