Hi I am currently plotting data from a file through a pipe in c++. I have written a function that reads in the text file, processes the information, plots the data in the text file and plots labels and arrows as needed.
Now I need a way to plot smoothly in a loop, so that a different text file is read and plotted every iteration without the Gnuplot window flickering.
For example:
for (unsigned int i = 0; i< 10; i++){
Processing_Plotting(i, gp);
}
This is the code i have in the main program which will plot the text file indicated by 'i'. eg: laserData1, laserData2 etc..
Currently the plot flickers and is unreadable due to the speed that it is called. I have looked for a way to plot data in real time with Gnuplot but haven't had much luck, any help would be appreciated. Thanks
A picture of the sort of thing I am plotting: http://imgur.com/3eTpMaB