From b4d97e0cf0c8d2d61d131dc347bf9e45dba5f8f7 Mon Sep 17 00:00:00 2001 From: NicolasBSN Date: Wed, 22 Mar 2017 12:23:56 +0100 Subject: [PATCH] Update ARE-DYNAMIC.py --- ARE-DYNAMIC.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ARE-DYNAMIC.py b/ARE-DYNAMIC.py index 74019d0..31f6f75 100644 --- a/ARE-DYNAMIC.py +++ b/ARE-DYNAMIC.py @@ -504,6 +504,7 @@ def matRecup(i, param): + def afficher_strat_dynamique(): fig=plt.figure() fig.suptitle('Animation des stratégies') @@ -519,15 +520,15 @@ def afficher_strat_dynamique(): cb.set_ticklabels(labels) def update(next_iteration,*args): - img.set_array(matRecup(next_iteration , 'etat')) + img.set_array(matRecup(next_iteration , 'strategie')) return [img] anim = animation.FuncAnimation(fig, update, frames=range(MaxIterations), interval=500, repeat = False) - plt.show(Block = True) + plt.show(block = True) - def afficher_strat_dynamique(): +def afficher_etat_dynamique(): fig=plt.figure() fig.suptitle('Animation des états') @@ -547,8 +548,7 @@ def afficher_strat_dynamique(): anim = animation.FuncAnimation(fig, update, frames=range(MaxIterations), interval=500, repeat = False) - plt.show(Block = True) - + plt.show(block = True) def affichage_strats_resultats_totaux(): """array->graph