for i in range(5):
if i == 0:
p = plt.imshow(z)
fig = plt.gcf()
plt.clim() // clamp the color limits
plt.title("Boring slide show")
else:
After Change
for i in range(len(data)):
ax.cla()
ax.imshow(data[i])
ax.set_title("frame {}".format(i))
// Note that using time.sleep does *not* work here!
plt.pause(0.1)