|
From: Thomas S. <t.s...@fz...> - 2009-09-29 14:08:36
|
use 'sprintf':
loop.plt:
counter = counter+0.5
inputfile = 'out_'.sprintf("%.1f",counter).'.dat'
print inputfile
outputfile = sprintf("%.1f",counter).'.ps'
print outputfile
if (counter<=counterMax) reread
arvindmer wrote:
>
>
> Ya Great It works.
>
> But my problem is that my files name contains decimal point that is
> out_1.0.dat, out_1.5.dat, out_2.0.dat, out_2.5.dat ........
>
> Now when I try to increase counter by 0.5 it shows me error......
>
> "loop.plt", line 2: internal error : STRING operator applied to non-STRING
> type
>
> What to do ?????
>
> --- On Fri, 9/25/09, Thomas Sefzick <t.s...@fz...> wrote:
>
> From: Thomas Sefzick <t.s...@fz...>
> Subject: Re: [Gnuplot-info] Plot several files
> To: gnu...@li...
> Date: Friday, September 25, 2009, 6:27 PM
>
>
> have a look at this thread:
> http://www.nabble.com/read-and-plot-a-lot-of-files-with-consecutive-numbering-td19272692.html
>
>
> arvindmer wrote:
>>
>> I have 100 data files named as 1.0.dat, 1.5.dat ..... 99.5.dat, 100.0.dat
>> I want a gnuplot script to plot then in different ps (post script) files
>> (100 ps files).
>> Plz help
>> Thanks in advance ....
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry® Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register
>> now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> Gnuplot-info mailing list
>> Gnu...@li...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Plot-several-files-tp25610705p25611743.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/Plot-several-files-tp25610705p25663636.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|