From 6525fe7877f0cce0399bf4e06caef0f209778f69 Mon Sep 17 00:00:00 2001 From: NicolasBSN Date: Wed, 8 Mar 2017 10:56:11 +0100 Subject: [PATCH] =?UTF-8?q?Update=20Bar=5FChart=20+=20R=C3=A9cup=5Fmat.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parties/Bar_Chart + Récup_mat.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/parties/Bar_Chart + Récup_mat.py b/parties/Bar_Chart + Récup_mat.py index 6b53db2..a9ba4d3 100644 --- a/parties/Bar_Chart + Récup_mat.py +++ b/parties/Bar_Chart + Récup_mat.py @@ -6,8 +6,8 @@ import matplotlib.pyplot as plt from pylab import * -TailleGrilleX = 2 -TailleGrilleY = 3 +TailleGrilleX = 15 +TailleGrilleY = 15 GrilleInitiale = 0 HistoriqueGrille = list() StratsResultats = list() @@ -23,9 +23,7 @@ def recup_mat(matrice, param): for ligne in range (0,TailleGrilleX): #int ligne for colonne in range (0, TailleGrilleY): #int colonne - for p in matrice[ligne,colonne]: - if p==param: - matR[ligne,colonne]=dict[param] + matR[ligne][colonne]=matrice[ligne][colonne][param] return matR def bar_chart(): @@ -92,4 +90,4 @@ def bar_chart(): - \ No newline at end of file +