xticks rotation plt code example
Example 1: matplotlib axis rotate xticks
ax.tick_params(axis='x', rotation=45)
Example 2: tick labels vertical matplotlib
plt.xticks(rotation=45)
ax.tick_params(axis='x', rotation=45)
plt.xticks(rotation=45)