formatting ticks with different styles