|
From: Thomas R. <tho...@gm...> - 2009-11-19 00:46:19
|
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
|