How to use matplotlib.pyplot.pcolor inside a for loop?

Viewed 19

I'm a novice programmer and this is my first question on this site, i'm trying to use matplotlib.pyplot.pcolor inside a for loop, but, instead of returning all generated pictures, the program seems to be averaging them and returning me just one final picture. My program is something like this:

import numpy as np
import matplotlib.pyplot as plt 


for i in range(10):
    a = np.random.randint(0,2,100).reshape(10,10)
    plt.pcolor(a)
0 Answers
Related