matplotlib x axis label rotation code example
Example 1: rotate axis labels matplotlib
plt.xticks(rotation=90)
Example 2: rotate xticks matplotlib
# rotate xticks of a plot Matplotlib
angle = 90
plt.xticks(rotation=angle)
plt.xticks(rotation=90)
# rotate xticks of a plot Matplotlib
angle = 90
plt.xticks(rotation=angle)