Skip to content
Extraits de code Groupes Projets
Valider 2b81d33a rédigé par Anzo's avatar Anzo
Parcourir les fichiers

fixed legend

parent c91368b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Aucun aperçu pour ce type de fichier
...@@ -59,9 +59,11 @@ def compare(N, RESOLUTION, seed, data): ...@@ -59,9 +59,11 @@ def compare(N, RESOLUTION, seed, data):
if N == 0: if N == 0:
title_name = "seed = "+str(seed) title_name = "seed = "+str(seed)
for e in data: for e in data:
graph=sns.kdeplot(data[e],legend=True,bw_adjust=BW,common_norm=False) graph=sns.kdeplot(data[e],legend=True,bw_adjust=BW,common_norm=False
,label=str(e))
graph.set(title=title_name) graph.set(title=title_name)
plt.xlabel(xlabel) plt.xlabel(xlabel)
plt.ylabel(ylabel) plt.ylabel(ylabel)
plt.legend()
plt.savefig(name+'.png', bbox_inches='tight') plt.savefig(name+'.png', bbox_inches='tight')
return return
...@@ -69,4 +69,4 @@ if __name__=="__main__": ...@@ -69,4 +69,4 @@ if __name__=="__main__":
#graph.ecdf_graph(N,RESOLUTION,seed,data) #graph.ecdf_graph(N,RESOLUTION,seed,data)
graph.compare(0, RESOLUTION, seed graph.compare(0, RESOLUTION, seed
, iteratives([1000, 100000, 100000000], seed, ParkMiller())) , iteratives([1000, 10, 100], seed, ParkMiller()))
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter