From: Rémi C. <Rem...@fr...> - 2009-04-13 18:29:26
|
Hi, I am trying to make an animated plot with gnuplot controlled from a python program. The problem is I did not find a command to sync with gnuplot. More precisely my program looks like this: while True: write data to 'file.dat' plot 'file.dat' with gnuplot wait a little the problem is in 'wait a little'. Sometimes, gnuplot is too slow, and does not plot 'file.dat' fast enough. So the file may be destroyed before it is plotted. What I would need is a command that would wait for gnuplot to finish plotting. Is there such a command ? I could not find it. It should be easy to implement. Just send 'echo "sync"' to gnuplot, and wait for a line with "sync" in return. I will probably implement this myself. I found some interesting ideas there: http://www.physik.tu-dresden.de/~baecker/python/gnuplot.html Maintainers of gnuplot-py may wish to implement these functions. It seems very convenient, and easy to implement. Rémi |