« Return to Thread: gnuplot script aide

Re: gnuplot script aide

by maolivar :: Rate this Message:

Reply to Author | View in Thread


Hi
his is an example of my data file:
 
172.184.16.28.1248 172.184.18.130.1238 12935187 c8 1523 0 2.83   30.53
172.184.16.22.1230 172.184.18.118.1250 19439623 c8 280 0 2.29   5.59
172.184.16.67.1332 172.184.18.36.1336 2159070478 c8 3017 0 3.02   65.172
172.184.16.70.1226 172.184.18.12.1230 11603713 c8 47 0 1.97   0.90
172.184.16.13.1246 172.184.18.114.1254 38252043 c8 1419 0 2.65   28.51
172.184.16.16.1228 172.184.18.88.1238 2150660365 c8 3275 0 2.83   65.47
172.184.16.5.1232 172.184.18.43.1328 2183082516 c8 4961 0 2.96   99.37
172.184.16.138.1232 172.184.18.130.1240 2626056 c8 6127 0 2.73   130.07
172.184.16.131.1330 172.184.18.135.1240 2042626 c8 854 0 3.36   16.93
172.184.16.31.1234 172.184.18.132.1256 2157714700 c8 3041 0 2.36   60.80
172.184.16.32.1228 172.184.18.142.1244 2185821187 c8 8257 0 2.63   165.24
172.184.16.83.1336 172.184.18.50.1236 2158979849 c8 18153 0 2.70   363.20
172.184.16.99.1334 172.184.18.121.1338 2150050580 c8 1518 0 3.12   30.27
172.184.16.86.1334 172.184.18.70.1336 2168939271 c8 12788 0 2.86   255.90
172.184.16.5.1352 172.184.18.20.1340 21501722796 c8 17242 0 2.79   20.86
172.184.16.77.1242 172.184.18.138.1336 2150572811 c8 517 0 2.73   13.95

and this is my script
#!/bin/bash
filelist='ls -l *.txt'
for fname in filelist ; do
gnuplot << \EOF
set term png color
set out "$fname.png"
set autoscale
unset label
set title "COMMUNICATIONS"
plot '$fname' using :5  w impulses
EOF
done

i think it doesn't care the "for"  or the fname variable  

thanks  

----------------------------------------

> Date: Sat, 31 May 2008 01:46:35 -0700
> From: t.sefzick@...
> To: gnuplot-info@...
> Subject: Re: [Gnuplot-info] gnuplot script aide
>
>
>> Thanks for your answers  but i have the same
>> error message and i'm not  overwriting the input file
>>
>> gnuplot> plot '$fname' using :5  w impulses
>>                                           ^
>>         line 0: no data point found in specified file
>
> could you post one of your datafiles (or a few lines
> of it, if it's too large) as an example?
>
> --
> View this message in context: http://www.nabble.com/gnuplot-script-aide-tp17559031p17573244.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

 « Return to Thread: gnuplot script aide