From dda93033c4f93470d67cc6c7f87ad50e4f1873e8 Mon Sep 17 00:00:00 2001 From: NicolasBSN Date: Wed, 22 Mar 2017 09:12:35 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parties/Bar_Chart + Récup_mat.py b/parties/Bar_Chart + Récup_mat.py index dfdc292..a4c68ef 100644 --- a/parties/Bar_Chart + Récup_mat.py +++ b/parties/Bar_Chart + Récup_mat.py @@ -27,7 +27,8 @@ def matRecup(i, param): return matR - +def animation_strat(): + fig=plt.figure() fig.suptitle('Animation des stratégies') cmap = mpl.colors.ListedColormap(["black","green" ,"red" ,"blue" ,"yellow"]) @@ -44,7 +45,7 @@ cb.set_ticklabels(labels) def update(next_iteration,*args): - img.set_array(matRecup(next_iteration , 'strategie')) + img.set_array(matRecup(next_iteration , 'strategie')) return [img] anim = animation.FuncAnimation(fig, update, frames=range(MaxIterations), interval=1000, repeat = False)