Specifying tick mark locations and tick labels