|
From: Bench <na...@be...> - 2008-04-17 01:44:44
|
Greetings, I apologize if this is a FAQ. I have some gnuplot files I want to execute multiple times varying some of the values within. I can't use environment variables because I am running this on a Win32 machine so backtick substitution won't work within gnuplot. And I can't find any way to pass variables via the calling command line. Any ideas? Thanks. -- View this message in context: http://www.nabble.com/setting-variables-prior-to-running-gnuplot-on-Win32-tp16737186p16737186.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2008-04-17 03:45:56
|
Bench wrote: > I apologize if this is a FAQ. I have some gnuplot files I want to execute > multiple times varying some of the values within. I can't use environment > variables because I am running this on a Win32 machine so backtick > substitution won't work within gnuplot. It will, if you use wgnuplot_pipe.exe or the Cygwin+X11 gnuplot.exe |
|
From: Bench <na...@be...> - 2008-04-18 00:56:13
|
>It will, if you use wgnuplot_pipe.exe or the Cygwin+X11 gnuplot.exe That works. Thanks! Here's a small sample of what I was trying to do and what I can now do. First I set some variables in the environment: C:\> set GP_FILENAME=foo.png C:\> set GP_TITLE=A test plot and run wgnuplot_pipes with the following contents in a static file: OUTFILE = "`echo %GP_FILENAME%`" TITLE = "`echo %GP_TITLE%`" set title TITLE set term png set out OUTFILE plot x ...and, bingo. It creates foo.png with the title I set. Thanks again! Ben -- View this message in context: http://www.nabble.com/setting-variables-prior-to-running-gnuplot-on-Win32-tp16737186p16758626.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Tatsuro M. <tma...@ya...> - 2008-04-18 00:14:42
|
Hello What do you want to do in detail? I cannot understand it. Do you have a script file that have parameters and do you want to control the parameter from external environmnts? If so my idea to use combination of batch file and script file. ********* # testscript.gp -- test script file plot a*x+b ********** ************** rem ===test.bat test batch file: usage : test 1.0 5.0 rem == the a=1.0, b=5.0 echo a=%1; b=%2 > exescript.gp type testsrcipt.gp >> exescript.gp wgnuplot exescript.gp - del exescript.gp del tmpxxxxx.txt ********** Is the above example helpful for you ? Regards Tatsuro --- Bench <na...@be...> wrote: > > Greetings, > > I apologize if this is a FAQ. I have some gnuplot files I want to execute > multiple times varying some of the values within. I can't use environment > variables because I am running this on a Win32 machine so backtick > substitution won't work within gnuplot. And I can't find any way to pass > variables via the calling command line. > > Any ideas? > > Thanks. > -- > View this message in context: > http://www.nabble.com/setting-variables-prior-to-running-gnuplot-on-Win32-tp16737186p16737186.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -------------------------------------- GANBARE! NIPPON! Win your ticket to Olympic Games 2008. http://pr.mail.yahoo.co.jp/ganbare-nippon/ |
|
From: Bench <na...@be...> - 2008-04-18 01:00:35
|
Thanks for replying. I see what you are suggesting here. That is basically what I am doing now. I was just looking for a solution that wouldn't require temporary files. Hans-Bernhard reply nailed it: use wgnuplot_pipes. Ben Tatsuro MATSUOKA-5 wrote: > > Hello > > What do you want to do in detail? > I cannot understand it. > > Do you have a script file that have parameters and do you want to control > the parameter from external > environmnts? > > If so my idea to use combination of batch file and script file. > > ********* > # testscript.gp -- test script file > plot a*x+b > > ********** > > ************** > rem ===test.bat test batch file: usage : test 1.0 5.0 > rem == the a=1.0, b=5.0 > echo a=%1; b=%2 > exescript.gp > type testsrcipt.gp >> exescript.gp > wgnuplot exescript.gp - > del exescript.gp > del tmpxxxxx.txt > ********** > > > Is the above example helpful for you ? > > Regards > Tatsuro > -- View this message in context: http://www.nabble.com/setting-variables-prior-to-running-gnuplot-on-Win32-tp16737186p16758628.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |