[SciPy-user] Plot vectors at specified (x,y) locations?
Gary Ruben
gruben at bigpond.net.au
Mon Mar 14 05:08:00 EST 2005
From gnuplot's help:
vectors
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.
Example:
plot 'file.dat' using 1:2:3:4 with vectors head filled lt 2
Here's a gnuplot example of a vector field plot:
<http://gnuplot.sourceforge.net/demo_4.1/vector.html>
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