|
From: Chris F. <cm...@ca...> - 2010-01-15 15:35:24
|
Maybe somebody can help me out. I have a C++ program which I want to pipe data to gnuplot such that it can display a graph of what is happening as a simulation runs. The pipeline itself works fine. What the trouble seems to be is that the program writes the data I want displayed to a file which it then commands gnuplot to plot. This mostly works, only gnuplot sporadically tells me that it cannot plot the datafile because there are no valid points. If I step through the program one graph at a time it works fine. My only suspicion is that gnuplot could be looking for the datafile before it has been written to the hard drive and is available again, even though C++ is definitely closing and flushing the stream that writes the data. Is this likely to be the problem or have I overlooked something? Is there any way to solve this? Thanks, Beleaguered PhD student |