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