Browse Source

Cleaner events shown

Yentl Van Tendeloo 8 years ago
parent
commit
70fc179127
1 changed files with 3 additions and 3 deletions
  1. 3 3
      interface/FSA/main.py

+ 3 - 3
interface/FSA/main.py

@@ -16,7 +16,7 @@ import time
 JUMP = 50
 MAX_WIDTH = 20 * JUMP
 MAX_HEIGHT = 20 * JUMP
-CLICK_TOLERANCE = 10
+CLICK_TOLERANCE = 5
 address = "http://127.0.0.1:8001"
 username = "test"
 
@@ -341,8 +341,8 @@ def update_graphs():
     a.plot(times, events, linestyle="none", marker="o")
     print("Lookup: " + str(lookup))
     print("Events:" + str(events))
-    f.get_axes()[0].set_yticks(range(len(lookup)))
-    f.get_axes()[0].set_yticklabels(lookup)
+    f.get_axes()[0].set_yticks(range(-2, len(lookup) + 2))
+    f.get_axes()[0].set_yticklabels(["", ""] + lookup + ["", ""])
     fcanvas.draw()
     root.after(100, update_graphs)