Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-24 Thread Jae-Joon Lee
Sure. you may include it if you want. -JJ On Sat, Aug 23, 2008 at 12:10 AM, Jason Grout <[EMAIL PROTECTED]> wrote: > Jae-Joon Lee wrote: >> Hi Jason, >> >> I did made a similar class sometime ago and I'm attaching it just in >> case. I guess it is very similar to yours but I rely on >> matploli

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
Jae-Joon Lee wrote: > Hi Jason, > > I did made a similar class sometime ago and I'm attaching it just in > case. I guess it is very similar to yours but I rely on > matplolib.patches.FancyArrow class to draw the arrow head. > > The circle drawn by scatter() command should be a circle with size s

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jae-Joon Lee
Hi Jason, I did made a similar class sometime ago and I'm attaching it just in case. I guess it is very similar to yours but I rely on matplolib.patches.FancyArrow class to draw the arrow head. The circle drawn by scatter() command should be a circle with size s (the third argument of the scatter

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
Alan G Isaac wrote: > Jason Grout wrote: >> 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. > > Some years back I b

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Alan G Isaac
Jason Grout wrote: > 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. Some years back I briefly tried to think about ar

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
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

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Alan G Isaac
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 arrowh