Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-12 Thread Michael Droettboom
On 11/09/2010 07:57 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 12:21 AM, Benjamin Root wrote: > >> On Tue, Nov 9, 2010 at 7:24 AM, Jae-Joon Lee wrote: >> >>> Thanks for tracking down this. >>> It turned out to be a silly error while adjusting the line end-point. >>> I'm attaching

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-10 Thread Michael Droettboom
On 11/10/2010 10:41 AM, Benjamin Root wrote: On Tue, Nov 9, 2010 at 8:44 PM, Jae-Joon Lee > wrote: On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout mailto:jason-s...@creativetrax.com>> wrote: > Is the tip of the arrow (after the miter join) supposed to

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-10 Thread Benjamin Root
On Tue, Nov 9, 2010 at 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > wrote: > > Is the tip of the arrow (after the miter join) supposed to hit (1,1), or > is > > the center of the line supposed to hit (1,1)? Or maybe the tip of the > > joinstyle='round' arrow (th

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
On 11/9/10 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > wrote: >> Is the tip of the arrow (after the miter join) supposed to hit (1,1), or is >> the center of the line supposed to hit (1,1)? Or maybe the tip of the >> joinstyle='round' arrow (the default) is supp

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jae-Joon Lee
On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout wrote: > Is the tip of the arrow (after the miter join) supposed to hit (1,1), or is > the center of the line supposed to hit (1,1)?  Or maybe the tip of the > joinstyle='round' arrow (the default) is supposed to hit (1,1)? > The tip of the arrow is me

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jae-Joon Lee
On Wed, Nov 10, 2010 at 12:21 AM, Benjamin Root wrote: > On Tue, Nov 9, 2010 at 7:24 AM, Jae-Joon Lee wrote: >> >> Thanks for tracking down this. >> It turned out to be a silly error while adjusting the line end-point. >> I'm attaching the patch. Please test the patch if you can. >> I'll commit t

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
On 11/9/10 9:21 AM, Benjamin Root wrote: > I just tested out the patch, and while it did seem to fix the problem for me > on the test script, I am not 100% certain that it is properly lined up > (maybe an off-by-one-pixel error?). Anyway, I tried zooming in to see which > kind of error it was and

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jae-Joon Lee
Thanks for tracking down this. It turned out to be a silly error while adjusting the line end-point. I'm attaching the patch. Please test the patch if you can. I'll commit the change sometime tomorrow. Regards, -JJ On Tue, Nov 9, 2010 at 9:15 PM, Jason Grout wrote: > I've been trying to track

[Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
I've been trying to track down a problem in the arrows where the arrow seems to be off by a little bit. I've narrowed down the problem to a small example: import matplotlib.patches as mpatches import matplotlib.pyplot as plt fig=plt.figure() ax = fig.add_subplot(111, xlim=(.98,1.02), ylim=(.98,