Skip to content
Snippets Groups Projects
Commit d7072359 authored by UMEC Mathieu's avatar UMEC Mathieu
Browse files

adding the pie_colors functioj for the representation of the DB compositions

parent 02ddaecd
No related branches found
No related tags found
No related merge requests found
......@@ -105,33 +105,22 @@ def visualisation_recouvrement (File, titre_du_graphique="Recouvrement moyen des
p1.tick_params(axis='x', rotation=90, size=0.05,labelsize = 2) #rotation des ticklabels
plt.show()
visualisation_recouvrement ("C:\\Users\\mumec\\Desktop\\Mini_codes\\resultats_recouvrement_Ltest_V0_Ramp.xlsx",titre_du_graphique="Recouvrement moyen des différentes voies métaboliques de la liste constructeurs sur KEGG")
#visualisation_recouvrement ("C:\\Users\\mumec\\Desktop\\Mini_codes\\resultats_recouvrement_Ltest_V0_Ramp.xlsx",titre_du_graphique="Recouvrement moyen des différentes voies métaboliques de la liste constructeurs sur KEGG")
def color_pie(Data, Labels, Colors,Explode=None,fsize=(10,10)):
plt.figure(figsize = fsize)
plt.pie(Data, labels = Labels,
pctdistance = 0.7,
explode=Explode,
colors=Colors,
autopct = lambda x: str(round(x, 1)) + '%')
plt.legend(loc=1, fontsize=10)
plt.show()
x = [2608,363,49613,1301]
y=["Reactome","KEGG","HMDB","Wikipathways"]
exp=[0.02, 0.04,0.04, 0.04]
co=["darkorange","firebrick","wheat","steelblue"]
#plt.plot(results_clustering)
#plt.title('clustering')
#plt.xlabel(metabolites_labels)
#plt.show()
\ No newline at end of file
color_pie(x, y, co,Explode=exp,fsize=(10,10))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment