From: Andrew R. <and...@us...> - 2005-04-15 07:19:30
|
On Fri, Apr 15, 2005 at 08:43:52AM +0200, Arjen Markus wrote: > hba...@ma... wrote: > > > > Hello, > > > > I'd like to make a vector plot where the origins of the vectors are not on a grid. I was able to do this by drawing lines and points on a graph, but I imagine there is a better way. I'm starting with a set of x and y positions that specify each vector's origin and a set of dx & dy values that specify its magnitude and direction. > > > > Thanks, > > -Hazen > > > > The plarrows() function does not expect anything but an array of x, y > coordinates > and the u, v components of the vector. Use that instead of plvect(). > > Alternatively: define a pseudo grid with dimensions Nx1 I'd go with the second option. You get more flexibility in controlling the vectors that way. plarrows is depreciated and will probably be removed at some stage. Also I believe it is not supported in all bindings. Be aware that the autoscaling of vectors will not work well in this case though. This probably wants looking at when I get chance. Andrew |