Correct method to get the x-axis labels and positions