Rotating axis text for each subplot

Just iterate through the axes tied to the figure, set the active axes to the iterated object, and modify:

for ax in fig.axes:
    matplotlib.pyplot.sca(ax)
    plt.xticks(rotation=90)

Leave a Comment