Alan G Isaac venit, vidit, dixit 03/13/06 15:18: > What's the preferred way to put an arrowhead at the midpoint > of a line segment? (Like this: http://en.wikipedia.org/wiki/Cobweb_Cycle ) > Drawing it in two pieces seems the obvious choice right now, > but it seems like there was talk of a decoration for this? > > Thank you, > Alan Isaac
I had planned to implement this for a complex analysis script. Fortunately, I checked the SVN code before to make sure the interface is still the same. And voila: In SVN, the pos argument of deco.arrow() can be anything between 0 and 1 now (it used be 0 or 1 only). This is in units of arclength. So, 0.5 is the midpoint, although I tend use something like 0.55 (pos is where the tip sits). Thanks, Andre! Cheers, Michael P.S.: Stay tuned for the update to deco.text() ;) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
