diff --git a/toDot.py b/toDot.py index 1f77247217f119a79ea86a449843140aabcf63ba..37604e608f1b8e2aaa0eabc9c28d9e3e170baac6 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()