From: А. Т <se...@gm...> - 2008-12-30 19:19:04
|
Hi! I have the following code: from numpy import * import Gnuplot, Gnuplot.funcutils from time import sleep def main(): g = Gnuplot.Gnuplot(debug=1) g.title('A simple example') # (optional) g('set output "out2.svg"') #g('set term svg size 200, 100'); g('set style data linespoints') # give gnuplot an arbitrary command g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]]) #sleep(1) if __name__ == '__main__': main() It produces a zero size file 'out2.svg' unless i uncomment sleep(1) I've played a bit with gp_win32.py and i'm sure that return code is 0 for pgnuplot.exe. Hey! When i wrote the lines above, I realized that it is a mistake in pgnuplot.exe! It exits before wgnuplot.exe does. So i've changed its behavior and it works. Hope this helps Windows users. thanks |