|
From: Ethan M. <merritt@u.washington.edu> - 2006-11-14 21:32:09
|
On Monday 13 November 2006 10:19 am, Nibbler wrote: > Hi. > > I have weard problem. I have 2 files which I use. First file > (file.txt) includes all primary commands. > Second file (file2.txt) includes information (names of outputs and > x/y-range values). > > Everything works fine (I get outputs: name.png and name2.png, but > when I try to look picture name.png in Dia-program > I get error: > Pixbuf[png] can't load: name.png > Whats wrong ? Why picture (name.png) is not a real picture ? (name > is: name.png, but it is not real a picture) > FILE.TXT > > # These command make picture 1 > set terminal png You set the terminal to png. OK. > call "file2.txt" $4 # HERE I READ WHAT WILL BE THE NAME OF THE Then you call file2.txt, which contains the following > FILE2.TXT > set output 'name.png' # NAME OF PICTURE 1 > set output 'name2.png' # NAME OF PICTURE 2 So you open a file 'name.png', but do not write anything to it. Then you immediately open a different file 'name2.png', which closes the first, empty, file. Later you plot something. After the plot you have an empty file 'name.png', and a file 'name2.png' containing a single plot. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |