I dont know the use case of your code, but here is what worked for me when I tried to create a figure with 2 rows 4 cols and 3 graphs. Use this:
ax3=fig.add_subplot(2,2,(3,4))