|
From: Thomas S. <t.s...@fz...> - 2011-02-09 16:44:58
|
have a look at the 'call' command wrathkeg wrote: > > 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 > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/command-line-variables-into-script--tp30883074p30884603.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |