Re: [Matplotlib-users] please help with arrow drawing.

2011-10-21 Thread Piter_
Thanks. The annotate function works. Does anybody knows a way to add some text above or belove an arrow? Now I do it using text command and coordinates for text. May be it possible to do directly with annotate command? Thanks. Petro.

Re: [Matplotlib-users] please help with arrow drawing.

2011-10-18 Thread Ryan Nelson
As far as I know, the 'arrow' function is not recommended. The 'annotate' function has a lot more features. Here's your code with the annotate function: import pylab from scipy import optimize import numpy x1=numpy.arange(-4000,1000,0.1) x2=numpy.arange(-1000,4000,0.1)

[Matplotlib-users] please help with arrow drawing.

2011-10-17 Thread Piter_
Hi all I want to draw an two headed arrow between two points. But I get a line. What I am doing wrong? I actually try to plot an image similar to this one: http://upload.wikimedia.org/wikipedia/commons/a/a3/Parameters_of_the_Marcus_Equation.JPG may be I can use an annotate function for this.