matplotlib change orentation of tick labels code example Example: matplotlib x label rotation plt.xticks(rotation=45)