|
From: Tatsuro M. <tma...@ya...> - 2011-08-24 23:10:02
|
Hello
GNU octave for windows uses gnuplot.exe. --persist option is not used.
How about fflush(pipe); at each command to flush buffer ?.
*************************
FILE *pipe = popen("gnuplot","w");
//adjust settings
fprintf(pipe, "set palette gray negative\n");fflush(pipe);
//plot
fprintf(pipe, "plot 'fileX.txt' matrix with image\n");fflush(pipe);
//close gnuplot pipe
pclose(pipe);
*****************************************
Regards
Tatsuro
--- On Thu, 2011/8/25, Mathias Anselmann wrote:
> Hello,
> I first tried to use gnuplot but if I use it wit the "--persist" swich all my commands that I pipe to gnuplot are shown in the standard output of cmd (and that very slowly) and unfortunately I need the "-p" switch.
> Greetings
> Mathias
>
> On Thu, 25 Aug 2011 07:28:07 +0900 (JST)
> Tatsuro MATSUOKA <tma...@ya...> wrote:
>
> > Hello
> > If you use gnuplot 4.4, use gnuplot instead of pgnuplot.
> > The gnuplot.exe is console program so that it can be treated the same as that in the linux. The pgnuplot is only for backward compatibility in gnuplot 4.4. distribution.
> >
> > Regards
> >
> > Tatsuro
>
|