fig, axs = plt.subplots(2, 5, figsize=(15, 6), facecolor='w', edgecolor='k')
fig.subplots_adjust(hspace=0.5, wspace=0.001)
data = np.arange(250, 260)
for ax, d in zip(axs.ravel(), data):
    ax.contourf(np.random.rand(10, 10), 5, cmap=plt.cm.Oranges)
ax.set_title(str(d))
Python: subplot within a loop: first panel appears in wrong position