Update Bar_Chart + Récup_mat.py

This commit is contained in:
NicolasBSN 2017-03-08 10:56:11 +01:00 committed by GitHub
parent 42be7007f0
commit 6525fe7877
1 changed files with 4 additions and 6 deletions

View File

@ -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():