From 4546840a589eb766878a8542d5b63cf548f9e6ec Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 Dec 2017 16:05:24 +0000 Subject: [PATCH] visual: debug arrows better Signed-off-by: Ian Jackson --- visual | 3 +++ 1 file changed, 3 insertions(+) diff --git a/visual b/visual index 667ce6a..1d1b2ce 100755 --- a/visual +++ b/visual @@ -22,6 +22,9 @@ class Visdebug(BaseVisdebug): ps = [ fn(t) for t in np.linspace(0,1,11) ] #dbg('Visdebug', ps) curve(pos = ps, color=colour) + def arrow(vd, p, d, **kw): + vd.line(p, p+d, **kw) + ring(pos=p, axis=d, radius=0.25, thickness=0.005, **kw) def crashing(vd, msg): print("CRASHING - VISDEBUG", msg, file=sys.stderr) rate(1E-8) -- 2.30.2