Fix maximum number of xaxis major ticks (max = 10).