From: Jacques B. <jac...@no...> - 2005-01-04 22:51:04
|
Ethan Merritt wrote: > When you say "batch mode" do you mean: > gnuplot inputfile.dat > or > gnuplot < inputfile.dat > or > gnuplot > gnuplot> load "inputfile.dat" I mean the 1st method. > For me, the 1st and 3d methods work as expected, but the > 2nd method does not. Hmmm. > If you must use the 2nd method, > perhaps you could use a loop-until-ready construct like this? > > main script: > set mouse > n=1; set term x11 n; plot x**n > n=2; set term x11 n; plot x**n > bind all Home "n=MOUSE_KEY_WINDOW; set term x11 n; plot x**n" > bind all End "DONE = 1" > DONE = 0 > print "Hit <End> in any plot window to continue" > load "wait_for_End" > > File wait_for_End would contain two lines: > pause -1 > if (!DONE) reread That fits exactly my need. Nice thing to write in a gnuplot HOWTO. And how do you do it with the 1st method? |