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