matplotlib secondary axis label rotation code example Example: matplotlib x label rotation plt.xticks(rotation=45)