|
From: Thomas S. <t.s...@fz...> - 2009-07-07 10:53:58
|
plot your data again with the yrange interval added to or subtracted from the data: dy=3 set yrange [0:0+dy] plot "datafile" using 1:2:(l*cos($3)):(l*sin($3)) with vectors, \ "" using 1:($2+dy):(l*cos($3)):(l*sin($3)) with vectors, \ "" using 1:($2-dy):(l*cos($3)):(l*sin($3)) with vectors to get the same color for all plots add 'linetype' options. a.g.s.maxwell wrote: > > Is it possible to have periodic boundaries, so if the vector arrow goes > out the top, it will come back in at the bottom of the graph at the same > place at same angle? > > > Thomas Sefzick wrote: >> >> l=1. >> plot 'datafile' using 1:2:(l*cos($3)):(l*sin($3)) with vectors >> >> use 'l' to adjust the length of the vectors. >> >> >> a.g.s.maxwell wrote: >>> >>> I have a data file with 3 columns (x,y,theta), and I have plotted a >>> graph of the x and y positions. Now I need to draw an arrow from each >>> (x,y) to (x+cos(theta),y+sin(theta)) which is easily done by typing in >>> each point separately but I will need to do it for up to 1000 points, so >>> can anyone help me with some code that will automatically assign an >>> arrow to every point on the graph according to the directions above? >>> >>> Thanks >>> >> >> > > -- View this message in context: http://www.nabble.com/Plotting-multiple-arrows-in-gnuplot-tp24354889p24368343.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |