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