Quantcast

gnuplot script aide

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

gnuplot script aide

maolivar


HI everybody,

i try to doia script in order to plot all the data files that i have in a folder, i have an idea but it doesn't works i followed this article to  do it
http://article.gmane.org/gmane.comp.graphics.gnuplot.user/2245/match=plot+arguments

#!/bin/bash
for fname in *.txt ; do  
gnuplot << \EOF
set term png color
set out "$fname"
set autoscale
unset label
set title "COMMUNICATIONS"
plot '$fname. using :5  w impulses
pause -1
EOF
done

this is the errro message that i have
line 0: no data point found in specified file

please does anybody help me

thanks


_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnuplot script aide

thse
> ..
>set out "$fname"
> ..
> plot '$fname' using :5  w impulses
> ..
> this is the errro message that i have
> line 0: no data point found in specified file

maybe you should choose another filename for the
output file, other than the name of the input file...
actually you are overwriting the input file.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnuplot script aide

maolivar
In reply to this post by maolivar

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


#!/bin/bash
filelist='ls -1 *.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
pause -1
EOF
done
set out
 
Miguel

> ..
>set out "$fname"
> ..
> plot '$fname' using :5  w impulses
> ..
> this is the errro message that i have
> line 0: no data point found in specified file
 
maybe you should choose another filename for the
output file, other than the name of the input file...
actually you are overwriting the input file.
 
--
View this message in context: http://www.nabble.com/gnuplot-script-aide-tp17559031p17560922.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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

miguel olivares varela wrote:
>
> HI everybody,
>
> i try to doia script in order to plot all the data files that i have in a folder, i have an idea but it doesn't works i followed this article to  do it
> http://article.gmane.org/gmane.comp.graphics.gnuplot.user/2245/match=plot+arguments
>
> #!/bin/bash
insert here:  filelist=`ls -1 *.txt
and replace the following line with
for fname in filelist ; do

> for fname in *.txt ; do  
> gnuplot << \EOF
> set term png color
> set out "$fname"                             <<-- why not "$fname".png ??  You have a chance to overwrite the original data!
> set autoscale
> unset label
> set title "COMMUNICATIONS"
> plot '$fname. using :5  w impulses    <<-- you need apostrophe here, NOT dot, first of all
> pause -1
> EOF
> done
also add here:
set out                # just to close the last produced file, otherwise you may
never see it
>
> this is the errro message that i have
> line 0: no data point found in specified file
>
> please does anybody help me
>
--
Marek W. Gutowski
Institute of Physics, ON-3.2, Al. Lotnikow 32/46
02-668 Warszawa, POLAND, tel. +48-22-0228436601 ext. 3122
== To talk or not to talk?  Yes, talk, plain ASCII please ==
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnuplot script aide

thse
> 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?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnuplot script aide

maolivar

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: [hidden email]
> To: [hidden email]
> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnuplot script aide

thse
try this script (works here without problems):

#!/bin/bash
filelist=`ls -1 *.txt`
for fname in $filelist ; do
echo $fname
gnuplot << EOF
set term png
set out "$fname.png"
set autoscale
unset label
set title "COMMUNICATIONS"
plot '$fname' using :5  w impulses
EOF
done
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnuplot script aide

Diego Villuendas Pellicero
In reply to this post by maolivar
Hi Miguel,

try this script,

#!/bin/bash
filelist=`ls *.txt`

for fname in $filelist ; do
gnuplot << EOF
set term png
set out '$fname.png'
set autoscale
unset label
set title "COMMUNICATIONS"
plot '$fname' using :5  w impulses
EOF
done

Find yourself the changes! ;)

Diego

On Mon, Jun 2, 2008 at 10:15 AM, miguel olivares varela <[hidden email]> wrote:

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: [hidden email]
> To: [hidden email]
> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info



--
Diego Villuendas Pellicero was here. But, where on hell is "here"? Here, "Here" is always here!
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gnuplot-info mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

legend (how to make the sample curve shorter?)

micmac
Hi there,
I would like to make shorter the line in the legend (the sample curve)
how can I set that?

thanks a lot,
Julien



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gnuplot-info mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ORTHOGRAPHIC projections vs perspectives

micmac
Hi all!

Is it possible to specify if we wnat an orthigraphic projection of a  
3d object (plot with splot) with Gnuplot?
thanks very much if you have the info!

Julien
 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gnuplot-info mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ORTHOGRAPHIC projections vs perspectives

Hans-Bernhard Bröker-2
Julien Derr wrote:

> Is it possible to specify if we wnat an orthigraphic projection of a  
> 3d object (plot with splot) with Gnuplot?

gnuplot is not a general-purpose 3D engine, it's a plotting program.  As
such, it always does parallel projection.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gnuplot-info mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
Loading...