Update ARE-DYNAMIC.py

This commit is contained in:
NicolasBSN 2017-03-22 12:23:56 +01:00 committed by GitHub
parent 39b292a5a0
commit b4d97e0cf0
1 changed files with 5 additions and 5 deletions

View File

@ -504,6 +504,7 @@ def matRecup(i, param):
def afficher_strat_dynamique(): def afficher_strat_dynamique():
fig=plt.figure() fig=plt.figure()
fig.suptitle('Animation des stratégies') fig.suptitle('Animation des stratégies')
@ -519,15 +520,15 @@ def afficher_strat_dynamique():
cb.set_ticklabels(labels) cb.set_ticklabels(labels)
def update(next_iteration,*args): def update(next_iteration,*args):
img.set_array(matRecup(next_iteration , 'etat')) img.set_array(matRecup(next_iteration , 'strategie'))
return [img] return [img]
anim = animation.FuncAnimation(fig, update, frames=range(MaxIterations), interval=500, repeat = False) 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=plt.figure()
fig.suptitle('Animation des états') 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) 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(): def affichage_strats_resultats_totaux():
"""array->graph """array->graph