fig.text in matplotlib rotation 45 code example Example: rotate axis labels matplotlib plt.xticks(rotation=90)