Thanks for the fix and the link!

Tom

On Nov 18, 2009, at 7:56 PM, Jae-Joon Lee wrote:

> http://matplotlib.sourceforge.net/api/artist_api.html?highlight=fancyarrowpatch#matplotlib.patches.FancyArrowPatch
>
> try to set shrinkA and shrinkB to 0.
>
> Also see below for how arrows are drawn.
>
> http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-arrow
>
> -JJ
>
>
> On Thu, Nov 19, 2009 at 9:46 AM, Thomas Robitaille
> <thomas.robitai...@gmail.com> wrote:
>> Hello,
>>
>> I'm trying to plot two perpendicular arrows and getting them to  
>> start from
>> the exact same point. If I try the following:
>>
>> ---
>>
>> import matplotlib
>> matplotlib.use('Agg')
>> import matplotlib.pyplot as mpl
>> from matplotlib.patches import FancyArrowPatch
>>
>> fig = mpl.figure()
>> ax = fig.add_subplot(111)
>>
>> arrow1 = FancyArrowPatch(posA=(0.5, 0.5), posB=(0.6, 0.5), \
>>                arrowstyle='-|>', mutation_scale=20.)
>>
>> arrow2 = FancyArrowPatch(posA=(0.5, 0.5), posB=(0.5, 0.6), \
>>                arrowstyle='-|>', mutation_scale=20.)
>>
>> ax.add_patch(arrow1)
>> ax.add_patch(arrow2)
>>
>> fig.savefig('fancyarrow.png')
>>
>> ---
>>
>> then the result are two perpendicular arrows but the arrows don't  
>> touch at
>> their origin (see attached image). Is there a way to fix this?
>>
>> Cheers,
>>
>> Tom
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>> 2008 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to