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

<<inline: fancyarrow.png>>

------------------------------------------------------------------------------
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