|
From: Gareth W. <g.w...@sh...> - 2011-02-09 14:07:50
|
Hi all, I have the following gnuplot script which takes data from a file with a single column and produces a histogram. I will have to run this script lots of times, on different results files. Is there a way to change 'res.dat' and 'res.eps' to command line variables so that I don't have to edit the script each time I run it on a different results file? Thanks in advance, Gareth set terminal postscript eps set output 'res.eps' set boxwidth 1 bw = 1 bin(x,width)=width*floor(x/width) set xrange [0:100] set yrange [0:50] set xtics 5 set ylabel "Number of students" set xlabel "Final grade" set nokey plot 'res.dat' using (bin($1,bw)):(1.0) smooth freq with boxes |