From 374bde4a2f5a61e0f3818fffce8df79cb8799eb9 Mon Sep 17 00:00:00 2001 From: Phokopi <phokopi@mail.ru> Date: Thu, 8 Dec 2022 13:04:47 +0100 Subject: [PATCH] Changement ordre graphe --- toDot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/toDot.py b/toDot.py index 1f77247..37604e6 100644 --- a/toDot.py +++ b/toDot.py @@ -22,11 +22,11 @@ colors = { pos = { "DemiiSel" : "0,0!", - "EquIInoxE" : "1,2!", - "IILLEGAL" : "3,2!", - "LiMiTeD" : "4,0!", - "PRIISME" : "3,-2!", - "SobrIIÉté" : "1,-2!" + "PRIISME" : "1,2!", + "EquIInoxE" : "3,2!", + "SobrIIÉté" : "4,0!", + "LiMiTeD" : "3,-2!", + "IILLEGAL" : "1,-2!" } # On récupère la liste des gagnants @@ -51,7 +51,7 @@ node [shape="plaintext"]; for liste in dic: for opp in dic[liste]["win"]: if dic[liste]["win"][opp] > dic[opp]["win"][liste]: - o.write(liste + " -> " + opp + "[labeldistance=4 labelangle=-15 penwidth=1 headlabel=\"" + str(dic[liste]["win"][opp]) + ";" + str(dic[liste]["lose"][opp]) + "\" fontsize=9 color=\"" + colors[liste] + "\" fontcolor=\"" + colors[liste] + "\"]\n") + o.write(liste + " -> " + opp + "[labeldistance=4 labelangle=-15 penwidth=1 headlabel=\"" + str(dic[liste]["win"][opp]) + ":" + str(dic[liste]["lose"][opp]) + "\" fontsize=9 color=\"" + colors[liste] + "\" fontcolor=\"" + colors[liste] + "\"]\n") o.write("}\n") o.close() -- GitLab