On 08.11.2022 03:58, Shahid Maqbool wrote:
> On Monday, 7 November 2022 at 6:53:13 pm UTC+9,
rasoul...@gmail.com
> wrote:
>> Hi
>>
>> I think that there is no need to use %f, and you can put the name
>> of the file and its definition into the loop, and then it works
>> better!
>>
>>
>> n=100 while (n<=10000) { fname = sprintf('data_%d.dat',n) plot
>> fname n=n+100 }
>>
>>
>>
>>
>> On Saturday, November 5, 2022 at 8:09:37 PM UTC+1, Karl Ratzsch
>> wrote:
>>> Something like this?
>>>
>>> fname(n) = sprintf('data_%.f.dat',n)
>>>
>>> n=100 while (n<=10000) { plot fname(n) n=n+100 }
>>>
>>>
>>>
>>>
>
> Hi all,
>
> Following your suggestions i wrote it like that:
>
> set grid set terminal gif animate delay 0.1 fname(n) =
> sprintf('data_%d.dat',n) n=100 while (n<=10000){ splot fname(n)
> matrix with pm3d notitle n=n+100 }
>
> or
>
> set grid set terminal gif animate delay 0.1