|
From: Nibbler <rea...@ho...> - 2006-11-13 18:20:10
|
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 If I dont use file2.txt -> ( I'll write straight in file.txt: set output "name.png" Then picture opens in Dia-program. BUT picture: name2.png works every way. (either I use file2.txt OR I write straight set output "name2.png in file.txt" Whats wrong ? Why picture (name.png) is not a real picture ? (name is: name.png, but it is not real a picture) And the picture (name2.png) is a real picture and I can open it in DIA-program ? FILE.TXT # These command make picture 1 set terminal png call "file2.txt" $4 # HERE I READ WHAT WILL BE THE NAME OF THE PICTURE 1 bin = 1 set style fill solid 0.30 border set xlabel 'title' tc lt 4 set ylabel 'title2' tc lt 4 load "file2.txt" $1 # I READ VALUES OF X-RANGE load "file2.txt" $2 # I READ VALUES OF Y-RANGE plot 'file.dat' using (bin*int($3/bin)):(1) title "Smooth frequencys" smooth freq with boxes reset #these commands make picture2 call "file2.txt" $5 # HERE I READ WHAT WILL BE PICTURE2 NAME set title "Something" set xlabel 'title' tc lt 4 set ylabel 'title' tc lt 4 set xdata time set format x "%m/%d\n %H:%M:\n%S" set timefmt "%Y-%m-%d %H:%M:%S" plot "file.dat" using 1:3 with filledcurve 1 reset FILE2.TXT #comments set xrange[:] set yrange[:] #comments set output 'name.png' # NAME OF PICTURE 1 set output 'name2.png' # NAME OF PICTURE 2 -- View this message in context: http://www.nabble.com/Weard-png-output-problem-tf2624196.html#a7322495 Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |
|
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 |
|
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. |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-11-15 22:57:05
|
On Wednesday 15 November 2006 04:35 am, Nibbler wrote: > > Can I increase the autoset yrange value ? > > What I means is can I somehow do like this: > yrange [0:autorange +3 ] ? help set offsets -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |
|
From: Nibbler <rea...@ho...> - 2006-11-16 06:28:58
|
Oh yes ! Thank you very much Ethan ! godspeed. Ethan Merritt wrote: > > On Wednesday 15 November 2006 04:35 am, Nibbler wrote: >> >> Can I increase the autoset yrange value ? >> >> What I means is can I somehow do like this: >> yrange [0:autorange +3 ] ? > > help set offsets > > > -- > 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#a7372339 Sent from the Gnuplot - Dev mailing list archive at Nabble.com. |