For some reason, after i add a second y axis to my plot
fig.plt.figure()
ax = plt.Axes(fig)
fig.add_axes(ax)
ax2 = ax.twinx()
fig.add_axes(ax2)
The xticklabels are no longer rotated!?
fig.autofmt_xdate(rotation = num)
Does anyone know why this is happening?
I can comment out the last two lines:
#ax2 = ax.twinx()
#fig.add_axes(ax2)
and it will rotate the xticklabels.
Place
fig.autofmt_xdate(rotation = num)after the statement definingaxbut before the call toax.twinx()and :yields