Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread Matthias Michler
On Sunday 02 May 2010 20:19:29 aditya bhargava wrote: Is there a straightforward way of plotting a vector in matplotlib? Suppose I want to plot the vector [1 2]'. If I pass this vector in to plot(), I get the line that passes through (0,1), (1,2). Instead I want the line that passes through

Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread Johan Grönqvist
2010-05-02 20:19, aditya bhargava skrev: Is there a straightforward way of plotting a vector in matplotlib? Suppose I want to plot the vector [1 2]'. If I pass this vector in to plot(), I get the line that passes through (0,1), (1,2). Instead I want the line that passes through (0,0),(1,2).

Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread aditya bhargava
Thanks Johan and Matthias, I was just wondering if there was a built-in way to do this in matplotlib. It seems like it would be a useful method to have. Adit 2010/5/3 Johan Grönqvist johan.gronqv...@gmail.com 2010-05-02 20:19, aditya bhargava skrev: Is there a straightforward way of

Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread Joe Kington
Isn't that what quiverhttp://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.quiverdoes? Or am I misunderstanding the question? 2010/5/3 aditya bhargava bluemangrou...@gmail.com Thanks Johan and Matthias, I was just wondering if there was a built-in way to do this in

Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread aditya bhargava
I don't think that plots a vector. Here's the sort of thing I was looking for: http://www.mathworks.com/matlabcentral/fx_files/23608/1/content/html/drawLAInro_02.png Of course it doesn't need to be a point...it can be a line or a line segment too. Adit On Mon, May 3, 2010 at 9:13 PM, Joe

Re: [Matplotlib-users] Plotting a vector in matplotlib

2010-05-03 Thread Johan Grönqvist
2010-05-04 04:13, Joe Kington skrev: Isn't that what quiver http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.quiver does? Or am I misunderstanding the question? Regardless of the OPs question, the quiver seems to be the solution I should use for my purpose. Thanks. /

[Matplotlib-users] Plotting a vector in matplotlib

2010-05-02 Thread aditya bhargava
Is there a straightforward way of plotting a vector in matplotlib? Suppose I want to plot the vector [1 2]'. If I pass this vector in to plot(), I get the line that passes through (0,1), (1,2). Instead I want the line that passes through (0,0),(1,2). Aditya wefoundland.com