This new FancyArrow stuff looks great, but I'm having trouble getting it to
work. All of the gallery examples I see seem to only use it thru an
'annotate' call. I just want to draw these arrows directly.
I tried the following, but it just draws a plain line:
ax = gca()
c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5),
arrowstyle="->")
ax.add_patch(c)
I also tried uisng __call__ on an ArrowStyle instance:
a = matplotlib.patches.ArrowStyle.Fancy(head_length=.4, head_width=.4,
tail_width=.4)
pth = matplotlib.path.Path( [[.3,.1],[.7,.5]] )
a(pth,1,1)
This gives an error. (it looks like it tries to access path.codes[:], which
from what I can tell shouldn't be accessed directly - so maybe this is a
bug?).
Any hints on how to draw FancyArrow?
thanks,
Ken
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users