Alan G Isaac wrote:
> Jason Grout wrote:
>> Another related issue is that width of the path used to draw the 
>> arrowhead makes the arrow tip go beyond the endpoint; is there a way to 
>> shorten a line by a certain number of points so that we 
>> can account for that?
> 
> For this problem, what you want is to fill the arrowhead
> without stroking it.
>

Brilliant!  Thanks for the suggestion.

The other problem is a more serious problem for me: how do I shorten the 
line so that it goes between the boundaries of the circle instead of the 
centers, especially when the circles are constructed in a scatter plot.

If I knew how big the circles were in plot coordinates, it wouldn't be a 
problem.  But the circle size isn't specified in plot coordinates, but 
in scale-independent coordinates, I believe.

Is there a way I could somehow compute the intersections of the paths? 
Maybe while I draw the line, I could also construct a circle of the 
right size at the endpoint, ask for the intersection, and shorten my 
line to go there?

Thanks again!

Jason


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to