[SciPy-user] Plot vectors at specified (x,y) locations?

Gary Ruben gruben at bigpond.net.au
Mon Mar 14 04:08:00 CST 2005

 From gnuplot's help:


The vectors style draws a vector from (x,y) to (x+xdelta,y+ydelta). 
Thus it requires four columns of data.  It also draws a small arrowhead 
at the end of the vector.

       plot 'file.dat' using 1:2:3:4 with vectors head filled lt 2

Here's a gnuplot example of a vector field plot:
If you don't find out how to do it with xplt, try gnuplot.py to drive 
gnuplot to do what you want.

Gary R.

Zachary Pincus wrote:
> Hello,
> I'm wondering if anyone knows a good way to plot (preferably with xplt, 
> but anything will do) a handful of vectors, given the vector magnitude 
> (u, v) and position (x, y).
> Any help is appreciated,
> Zach Pincus
> Department of Biochemistry and Program in Biomedical Informatics
> Stanford University School of Medicine

More information about the SciPy-user mailing list