Quote:
Originally Posted by Exoskeletor
i have try to make this script:
echo "read columns"
read x1
read x2
gnuplot
#plot "mydata.dat" using $x1:$2
plot tail -10 "mydata.dat" using $x1:$2
set title "test"
set xlabel head -1 "mydata.dat $x1
set ylabel head -1 "mydata.dat $x2
set xrange [1.5:9.5]
set yrange [1.5:9.5]
set terminal svg
set output “myfile.svg”
but i get an gnuplot/n not found.. why?
also something tells me that plot tail -10 will not work, i have to find another way to read all the lines except the first
|
And why a program is not found - not necessarily 'gnuplot' ? I.e. have you heard of 'PATH' environment variable ?
And if the above is a shell script, why do you think the commands from the shell script will be fed into 'gnuplot' ?
AFAIR 'gnuplot' can read commands from file, so shy do you need the shell script in the first place ?