add a 'newline':
fprintf(Gplt,"plot '/home/mk/nh1.dat' using 100 with lines\n");
freude wrote:
>
> Hello everyone,
>
> I am trying to call gnuplot in c++ code using pipe in linux. There is no
> errors during compilation, building and execution. However, window with
> the plot does not appear. Below is the code.
>
> FILE* Gplt = popen("gnuplot -persist","w");
> fprintf(Gplt,"plot '/home/mk/nh1.dat' using 100 with lines");
> pclose(Gplt);
>
> What is the possible reason of such behaviour?
>
--
View this message in context: http://old.nabble.com/gnuplot-doesn%27t-plot-from-pipe-tp31834019p31840809.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|