Update ARE-DYNAMIC.py

This commit is contained in:
NicolasBSN 2017-03-29 09:56:13 +02:00 committed by GitHub
parent f603fff8ce
commit 07a77f6c01
1 changed files with 5 additions and 2 deletions

View File

@ -73,6 +73,9 @@ ListePourcents = list()
#Couleurs des Stratégies #Couleurs des Stratégies
CouleursStrat=['b','r','black','g','purple'] CouleursStrat=['b','r','black','g','purple']
#Vitesse de défilement des affichages dynamiques
Vitesse = 500
""" """
Types: Types:
@ -505,7 +508,7 @@ def afficher_strat_dynamique():
img.set_array(matRecup(next_iteration , 'strategie')) 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= Vitesse, repeat = False)
plt.show(block = True) plt.show(block = True)
@ -529,7 +532,7 @@ def afficher_etat_dynamique():
img.set_array(matRecup(next_iteration , 'etat')) img.set_array(matRecup(next_iteration , 'etat'))
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= Vitesse, repeat = False)
plt.show(block = True) plt.show(block = True)