|
From: Koto N. <kot...@gm...> - 2006-07-12 05:50:39
|
Dear Roberto,
Thank you millions.
You fixed every problem I faced. I spend very hard time to solve this
problem so I really appreciate you.
As a feed back for the future developer like me, let me write what I did.
>From C# call wgnuplot with command file as following:
Process.Start("wgnuplot.exe", "command.gp");
Also in the command.gp file is made by following. This was done at
the wgnuplot command line.
plot "data.txt" using 1:3 title "testline" with linesp
set terminal png size 320, 240
set output "picture.png"
replot
set output
set terminal windows
save "command.gp"
Where data.txt is a file contains data, picture.png is a png file that
shows the plot of data's first colomn vs third colomn, and command.gp
has all commans above except the last line.
So when I run at the DOS window as:
wgnuplot command.gp
Then I could get the picutre.png at the working directory without any
input at the command line of wgnuplot.
When the C# command runs, then I could get the picture.png file. This
is very nice for C# since it could use the wgnuplot functions and use
the result.
Thank you very much again Roberto, now I can move on.
Regards,
Koto
On 7/11/06, Roberto Baginski <rba...@uo...> wrote:
> Koto Norose wrote:
>
> > I cannot use the command Process.Start("wgnuplot.exe", "load
> > 'command.gp'"); in C#.
> > The proof is wgnuplot.exe, load 'command.gp' in DOS window doesn't work.
> > So please let me know how to type in DOS window to make wgnuplot do
> > some commands.
>
> Dear Koto,
>
> To launch a batch session of gnuplot using a command file "command.gp"
> from a command prompt
>
> wgnuplot.exe command.gp
>
> See also
>
> help batch
>
> Regards,
> Roberto
>
|