I'm using IPython and matplotlib to show sparce matricies, like this:
%matplotlib inline
import math
a = [ [randint(2) for j in range(0,5)] for i in range(0, 5)]
spy(a)

Is it possible to call spy in a loop, to show several plots? This code only shows one, but I'd like it to show all five.
plots = [ [ [randint(2) for j in range(0,5)] for i in range(0, 5)] for x in range(0,5)]
for plot in plots:
spy(plot)