[Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Alexander Dietz
Hi, How is the syntax for the matplotlib command 'arrow'? There is not very much to take from the help (see below). An example would be nice. Thanks Alex In [46]: arrow? Type: function Base Class: type 'function' String Form:function arrow at 0xb77f8a3c Namespace:

Re: [Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Jessica Lu
I usually use the following to make single arrows: plot([0,1], 'k.') arr1 = pylab.Arrow(0.5, 0.5, 0.1, 0.0, width=0.02) fig = pylab.gca() fig.add_patch(arr1) If in ipython -pylab you need to savefig or send another command (e.g. xlabel) or reload/refresh the plot (I can't remember the

Re: [Matplotlib-users] How to use 'arrow'?

2007-07-20 Thread Eric Firing
The automatic docstring generation for this command is badly fouled up, and I can't straighten it out right now. In the meantime, look at the docstring for FancyArrow.__init__ in patches.py. There is also a horrendously complicated example in examples/arrow_demo.py. Depending on what you