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.htmlSent 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-infomiguel 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
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info