How to rotate X-axis tick labels in Pandas bar plot? 15.03.2021 · Using plt.xticks(x, labels, rotation='vertical'), we can rotate our tick’s label. Steps. Create two lists, x, and y. Create labels with a list of different cities.