Re: [Matplotlib-users] Arrow with a dashed line

2012-03-26 Thread Jae-Joon Lee
Just to clarify, both arrowstyle='simple' and arrowstyle='-|>' draw arrows as patches. In your first example with arrowstyle='simple', the arrow is drawn as filled patch without edges, i.e., linestyle is not effective. arrowstyle="-|>" also uses a patch but no "fill", only "stroke". Regards, -JJ

Re: [Matplotlib-users] Arrow with a dashed line

2012-03-12 Thread Tony Yu
On Sun, Mar 11, 2012 at 2:13 PM, Tony Yu wrote: > Is it possible to draw an arrow with a dashed line? > > I tried using a fancy arrow patch and set the linestyle: > > #~~~ > import matplotlib.pyplot as plt > > fix, ax = plt.subplots() > ax.set_xlim((-1,5)) > ax.set_ylim((-5,3)) > > ax.annotate('s

[Matplotlib-users] Arrow with a dashed line

2012-03-11 Thread Tony Yu
Is it possible to draw an arrow with a dashed line? I tried using a fancy arrow patch and set the linestyle: #~~~ import matplotlib.pyplot as plt fix, ax = plt.subplots() ax.set_xlim((-1,5)) ax.set_ylim((-5,3)) ax.annotate('simple', xy=(2., -1), xycoords='data', xytext=(100, 60), t