Explorar o código

Cleaner events shown

Yentl Van Tendeloo %!s(int64=8) %!d(string=hai) anos
pai
achega
70fc179127
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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)