Update Bar_Chart + Récup_mat.py
This commit is contained in:
parent
9ff02e1d3f
commit
dda93033c4
|
@ -27,6 +27,7 @@ def matRecup(i, param):
|
|||
|
||||
return matR
|
||||
|
||||
def animation_strat():
|
||||
|
||||
fig=plt.figure()
|
||||
fig.suptitle('Animation des stratégies')
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue