Hello everyone,
I am trying to call gnuplot in c++ code using pipe in linux. There is no errors during compilation, building and excecution. 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?