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. 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.) aa = ax.annotate('', (1,1), (0,0), arrowprops=dict(arrowstyle="-|>", fc="k", ec="k",lw=50, shrinkB=0, path_effects=[Stroke(joinstyle='miter')] ) Also, I noticed that the arrow head is not correctly filled when path_effects are in use. This is now fixed. Regards, -JJ
arrow.patch
Description: Binary data
------------------------------------------------------------------------------ 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