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