From 1731a9c3538fb63385fc2cad58389ff70376363c Mon Sep 17 00:00:00 2001
From: Elliu <elliu@hashi.re>
Date: Thu, 9 Dec 2021 22:58:51 +0100
Subject: [PATCH] Improve display

---
 toDot.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/toDot.py b/toDot.py
index 1bfac26..afb7181 100755
--- a/toDot.py
+++ b/toDot.py
@@ -6,7 +6,7 @@ translate = {
     "che" : "ChevalerIIE",
     "com" : "ComplotIIstE",
     "fii" : "FIIPALE",
-    "hur" : "HURRICANE",
+    "hur" : "HURRIICANE",
     "iik" : "IIKEA",
     "ani" : "L'ANiMALERie",
     "ove" : "OVERDRIIVE",
@@ -29,6 +29,7 @@ with open('input.yaml','r') as data:
     o = open("results.dot", "w")
     o.write("""
 Digraph G {
+graph [ dpi = 250 ];
 node [shape="plaintext"];
 """)
     for liste in dic:
@@ -38,6 +39,6 @@ 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 + "[penwidth=2 headlabel=\"" + str(dic[liste]["win"][opp]) + "\" labeldistance=3 color=\"" + colors[liste] + "\" fontcolor=\"" + colors[liste] + "\"]\n")
+                o.write(liste + " -> " + opp + "[labeldistance=7 labelangle=12 penwidth=1 headlabel=\"" + str(dic[liste]["win"][opp]) + ";" + str(dic[liste]["lose"][opp]) + "\" fontsize=10 color=\"" + colors[liste] + "\" fontcolor=\"" + colors[liste] + "\"]\n")
     o.write("}\n")
     o.close()
-- 
GitLab