|
From: Ethan M. <merritt@u.washington.edu> - 2006-08-31 18:26:43
|
On Thursday 31 August 2006 11:09 am, Dhiman Barman wrote: > hi, > mean, it will be useful to have support for loops, variable > assignment in gnuplot files. > > if I have to plot 100 files where only the output filename > and input file name change, it will be useful to have loop > support...but that also means having compiler/interpreter > support. So embed the call to gnuplot in a perl/awk/shell script. Loop 100 times, changing the file names via an environmental variable or symlink or in the actual command that is sent to gnuplot. Actually you _can_ do this in gnuplot already, using string variables and a reread loop. But it is awkward compared to a real scripting language. EAM > > dhiman > > On Wed, Aug 30, 2006 at 05:26:55PM -0700, Ethan Merritt wrote: > > On Wednesday 30 August 2006 05:19 pm, Dhiman Barman wrote: > > > Is there any option of taking input from command > > > line options while running gnuplot file.gnu? > > > > No. > > > > > Or can we embed scripts in gnuplot files. > > > > I don't understand what you mean. > > Usually it is the other way around - you embed the > > gnuplot calls in your script. > > > > > > -- > > Ethan A Merritt > > Biomolecular Structure Center > > University of Washington, Seattle WA -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |