From 46e317f3e360423c225f264dd6450114532ed6db Mon Sep 17 00:00:00 2001 From: NicolasBSN Date: Wed, 15 Mar 2017 09:33:54 +0100 Subject: [PATCH] =?UTF-8?q?Update=20Bar=5FChart=20+=20R=C3=A9cup=5Fmat.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parties/Bar_Chart + Récup_mat.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/parties/Bar_Chart + Récup_mat.py b/parties/Bar_Chart + Récup_mat.py index 3cdadb9..411473d 100644 --- a/parties/Bar_Chart + Récup_mat.py +++ b/parties/Bar_Chart + Récup_mat.py @@ -17,6 +17,16 @@ def simulation(): while iterations <= MaxIterations : partie_globale() 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): array*str-> array