Hi, <br>Like a dill I only recently realised that MrEd had a spline draw feature. <br><br>Just a fun here is a little mod of graph.ss that gives curved arrows.<br><br>[It looks best for horizontal graphs...]<br><br>;line 593 comment out draw-line
<br>; (send dc draw-line<br>; (+ dx from-x) (+ dy from-y) ; start<br>; (+ dx to-x) (+ dy to-y)); end<br>;include draw-spline<br> (let* (
<br> (x1 (+ dx from-x)) ; start-point<br> (y1 (+ dy from-y))<br> (x2 (+ dx to-x)) ; end-point<br> (y2 (+ dy to-y))
<br> (xmid (/ (+ x1 x2) 2)) ; mid-point for nice curve<br> (ymid (/ (+ y1 y2) 2))<br> <br> (x3 (+ (/ x1 4) (/ (* 3 xmid) 4))) ; control point
<br> (y3 (+ (/ (* 3 y1) 4) (/ ymid 4))) <br> <br> (x4 (+ (/ (* 3 xmid) 4) (/ x2 4))) ; control point.<br> (y4 (+ (/ ymid 4) (/ (* 3 y2) 4)))
<br> <br> )<br> (send dc draw-spline ; first bit<br> x1 y1<br> x3 y3 ; control point.
<br> xmid ymid)<br> (send dc draw-spline ; second bit<br> xmid ymid <br> x4 y4<br> x2 y2)
<br> )<br><br><br>Cheers,<br><br>Stephen<br><br><br><br>--<br>Stephen De Gabrielle<br><a href="mailto:s.degabrielle@ucl.ac.uk">s.degabrielle@ucl.ac.uk</a><br>Telephone +44 (0)20 7679 5242 (x45242)
<br>Mobile 079 851 890 45<br><a href="http://www.uclic.ucl.ac.uk/annb/MaSI.html">http://www.uclic.ucl.ac.uk/annb/MaSI.html</a><br>University College London Interaction Centre<br>Remax House - 31/32 Alfred Place
<br>London - WC1E 7DP