Update Bar_Chart + Récup_mat.py

This commit is contained in:
NicolasBSN 2017-03-15 09:33:54 +01:00 committed by GitHub
parent 761a53b6f0
commit 46e317f3e3
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,16 @@ def simulation():
while iterations <= MaxIterations : while iterations <= MaxIterations :
partie_globale() partie_globale()
pass pass
fig=plt.figure()
im=plt.imshow(HistoriqueGrille[0], interpolation = 'nearest', cmap = plt.cm.gray_r)
def update(next_iteration):
im.set_array(cells)
return im
anim = animation.FuncAnimation(fig, update, frames=range(MaxIterations), interval=50, blit=True)
plt.show()
def matStratIté(i): def matStratIté(i):
array*str-> array array*str-> array