Re: Starting Gnuplot with script then going interactive
by Richard Owlett <rowlett@[EMAIL PROTECTED]
>
Sep 28, 2008 at 04:50 AM
Pete Gregory wrote:
> Richard Owlett wrote:
>
>> Richard Owlett wrote:
>>
>>> I am using Gnuplot Version 4.2 patchlevel 4 under WinXP Pro.
>>>
>>> I initiate everything by entering
>>>
>>> G:\gnuplot\bin\wgnuplot.exe c:\gnuplotscript.dem -
>>>
>> --> into the Windows(tm) Run box
>>
>>>
>>> The contents of c:\gnuplotscript.dem is the following
>>>
>>> set cntrparam linear
>>> set cntrparam levels 50
>>> set cntrparam points 30
>>> set cntrparam order 10
>>> set contour surface
>>> set style data lines
>>> set ticslevel 0
>>> set zrange [0:1]
>>> unset key
>>> unset surface
>>
>> --> # splot "-" using 2:1:($3>.001 ? $3 : 1/0)
>> that came out of a previous version
>>
>>>
>>> 0.4 20 0.00110875
>>> 0.4 40 0.00048893
>>> 0.4 60 0.00496049
>>> 0.4 80 0.0120685
>>> [ SNIP 500k of data ;]
>>> 0.71 9960 3.94556E-005
>>> 0.71 9980 2.85107E-005
>>> 0.71 10000 4.76379E-005
>>> e
>>>
>>> # ---- end of script
>>>
>>> Every thing works so far.
>>> BUT there is no command window into which to enter more commands.
>>> They would probably be "set xrange" &/or "set yrange" commands to
>>> examine areas of interest.
>>>
>>> Reading help for "special filenames" left me wondering if I even
>>> could do it. Suggestions?
>>>
>>>
>>>
> Hi
>
> Don't know if this is the 'proper' way to do it, but this works for me
> (in linux). Enter gnuplot interactively and just load the script file.
>
> $ gnuplot
> gnuplot> load 'gnuplotscript.dem'
> <things happen>
> gnuplot> <interactive commands>
>
>
> HTH
> Pete.
Knew I should have taken a break sooner. Thanks.