I'm writing a data file from a perl script and I want to launch
gnuplot with the datafile as a program argument. This part works.
The problem that I am having is that I need to draw a line from one
point to another to show direction. After going though the gnuplot
help screens I think I have to explicitly specify the points I want
the lines drawn to. The data points are ordered by time, so I need
gnuplot to draw lines from one point to the next. Is this possible
without doing it explicitly?
Thanks,
Mark Schunder
msch...@cybernet.com
If you don't want arrowheads, you might just be able to use the "lines"
plotting style: "plot ... with lines" or "... with linespoints" (the
former will connect the data points with line segments; the latter will
use do the same but also put symbols at the points). Your data points
will be connected in the order they occur in the file.
If you want arrowheads but still want the program to work automatically,
you could run a preprocessor from your script. The preprocessor would
read your data file, generate the "set arrow" commands and write them
into a temporary file. Your gnuplot script would then "load" that file
prior to executing the "plot" command.
Dick Crawford, aka rccra...@lanl.gov