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