I am trying to rotate the x tick labels in a plot. I created a general function that plots in the style I want to plot. I do the following:
labels=ax2.get_xt
for tl in ax2.get_xticklabels(): tl.set_rotation(30)