|
From: Nibbler <rea...@ho...> - 2006-11-15 12:35:05
|
Ok. Thanks Ethan Merritt. I thought I can read one line from file at a time. My plotFile contains two plot commands, so I solve this problem and I use load-file command and I have two files where I can load commands. example... set output png commands... load "file1.txt" # this contains outputname, x-range etc.. plot... set output png set xrange [0:3] load "file2.txt" # this contains yrange, outputname etc... plot... ANOTHER QUESTION: Can I increase the autoset yrange value ? What I means is can I somehow do like this: yrange [0:autorange +3 ] ? Now the yrange would be autorange + 3 ? Ethan Merritt wrote: > > 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 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > -- View this message in context: http://www.nabble.com/Weard-png-output-problem-tf2624196.html#a7356898 Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |