From: Zoe C. <zoe...@iw...> - 2005-09-06 16:03:59
|
Dear gnuplot-py users, I am trying to plot a series of files with python and gnuplot named sequentially as: temp/spectra1.dat temp/spectra2.dat temp/spectra3.dat ..... and so on I am generating each of these files in a loop and try to open them and store each file in a postscript file as: > for i in range(1,detectors): > data = open('temp/spectra'+str(i)+'.dat','r') > g.plot(data) > g.hardcopy('gp_test'+str(i)+'.ps', enhanced=0, color=1) > g.q This doens't seem to work, what is my mistake? Thank you very much for any help, Zoe -- ----------------------------------------------------------------- | Zoe Cournia, Dipl.-Chem. Phone: | | University of Heidelberg +49 6221 548808 (office) | | IWR - Computational Biophysics +49 179 4840634 (mobile) | | Im Neuenheimer Feld 368 +49 6221 346050 (home) | | D-69120 Heidelberg Fax: +49 6221 548868 | | | | email: zoe...@iw... | | http://spider.iwr.uni-heidelberg.de/~cournia/ | ----------------------------------------------------------------- |