diff --git a/graph.py b/graph.py index b7e98e7..402e031 100644 --- a/graph.py +++ b/graph.py @@ -252,17 +252,17 @@ def graph(session, fname='plot.png'): i = 0 for label in labels: if i%2 == 0: - height = 1.22 + height = 1.19 else: - height = 1.12 + height = 1.06 i = i + 1 - g(f"set arrow nohead from '{label[0]}', graph 0.01 to '{label[0]}', graph {height-0.05} front lc rgb 'red' dt 2") - g(f"set object rect at '{label[0]}', graph {height-0.03} size char {len('%d' % i)+1}, char 1 fc rgb 'red'") - g(f"set object rect at '{label[0]}', graph 0.0 size char 0.5, char 0.7 front fc rgb 'red'") - g(f"set label at '{label[0]}', graph {height-0.03} '{i}' center tc rgb 'black' font 'Courier-New,7'") - g(f"set label at '{label[0]}', graph {height+0.07} '{label[1][0:30]}' center tc rgb 'white' font 'Courier-New,7'") + g(f"set arrow nohead from '{label[0]}', graph 0.01 to '{label[0]}', graph {height} front lc rgb 'red' dt 2") + #g(f"set object rect at '{label[0]}', graph {height-0.03} size char {len('%d' % i)+1}, char 1 fc rgb 'red'") + g(f"set object rect at '{label[0]}', graph 0.0 size char 0.5, char 0.5 front fc rgb 'red'") + #g(f"set label at '{label[0]}', graph {height-0.03} '{i}' center tc rgb 'black' font 'Courier-New,7'") + g(f"set label at '{label[0]}', graph {height+0.07} '[{i}] {label[1][0:30]}' center tc rgb 'white' font 'Courier-New,7'") if i > 0: g("set yrange [0:100]")