On 11/9/10 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > <jason-s...@creativetrax.com> 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 meant to hit (1,1), which is done by the > underlying arrow class adjusting the end point of the path during the > drawing time. This only happens for arrowstyle "->" and etc. > However, there was an incorrect arithmetic which I think is fixed now. > The patch is attached (it also fixes dpi-related issues). > I'm not sure it would be better if this could be optionally turned > off. Any suggestion? > Let me know of any (persisting or other) issues.
Wow. You're amazing. Thanks for all the work you put into this right away! When I set shrinkB to zero, that arrow is right on the money. > > FYI, path is shortened by small amount by default. This is controlled > by *shrink* parameter (shrinkA and shrinkB shortens the line begin and > the line end respectively.) > Right. In Sage, we're using the shrinkA and shrinkB options quite a bit. For example, we use it in drawing vertex-and-edge graphs (so the arrows go to the edges of the vertex circles), and right now we use it by default to shrink by the linewidth (though I think I'm going to turn off Sage's default shrinking and just leave that up to the user). This latest patch seems to take care of the problems I was seeing. Thanks again! Jason -- Jason Grout ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users