|
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. |