import matplotlib.pyplot as plt %matplotlib inline fig=plt.figure() ax1=fig.add_subplot(2,1,1) ax2=fig.add_subplot(2,1,2) ax1.plot(unrate.loc[0:11,"DATE"],unrate.loc[0:11,"VALUE"]) ax2.plot(unrate.loc[12:23,"DATE"],unrate.loc[12:23,"VALUE"]) plt.xticks(rotation=90)
What I expected to happen:
I expected that both the plots will get the rotation of their x-axis labels with 90 degrees.
What actually happened:
Only the second plot ax2 got it’s x labels rotated with 90 degrees.
Can we actually use sticks in the case when we are building multiple blocks? If yes, how can we change the rotation of the x-label using sticks for all the plots in the figure (Container)?