diff --git a/parties/Bar_Chart + Récup_mat.py b/parties/Bar_Chart + Récup_mat.py index dfdc292..a4c68ef 100644 --- a/parties/Bar_Chart + Récup_mat.py +++ b/parties/Bar_Chart + Récup_mat.py @@ -27,7 +27,8 @@ def matRecup(i, param): return matR - +def animation_strat(): + fig=plt.figure() fig.suptitle('Animation des stratégies') cmap = mpl.colors.ListedColormap(["black","green" ,"red" ,"blue" ,"yellow"]) @@ -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)