matplotlib tilt x labels 90 degrees code example Example: rotate axis labels matplotlib plt.xticks(rotation=90)