I am using a for loop to calculate values at every node of 20x20 matrix and storing data in
MM = [] 
I want to animate the results and my code looks like this:
ax = plt.subplot(111) 
for i in range(60): 
    x = MM[i]  
    ax.contourf(X,Y,x, cmap = cm.hot) 
    plt.draw()                            
plt.show()
The problem is that it shows only MM[-1]. I have looked over the examples given here, but can't figure out how to make it work. Thank you.