Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Turn on, tune up, rock out." -- Billy Gibbons


devel / comp.graphics.apps.gnuplot / Re: animation from data files

SubjectAuthor
* animation from data filesShahid Maqbool
+- Re: animation from data filesOlaf Schultz
`* Re: animation from data filesKarl Ratzsch
 `* Re: animation from data filesRussell Kajouri
  `* Re: animation from data filesShahid Maqbool
   `- Re: animation from data filesJörg Buchholz

1
animation from data files

<db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=119&group=comp.graphics.apps.gnuplot#119

 copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a05:620a:24c9:b0:6ee:d791:9f84 with SMTP id m9-20020a05620a24c900b006eed7919f84mr16405075qkn.490.1667367952659;
Tue, 01 Nov 2022 22:45:52 -0700 (PDT)
X-Received: by 2002:a81:5385:0:b0:370:b29:abb3 with SMTP id
h127-20020a815385000000b003700b29abb3mr20917784ywb.2.1667367952413; Tue, 01
Nov 2022 22:45:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 1 Nov 2022 22:45:52 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=141.223.63.187; posting-account=XnSkHAoAAADfjJd2J8yTdEJJrrgeBtts
NNTP-Posting-Host: 141.223.63.187
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
Subject: animation from data files
From: shahid...@gmail.com (Shahid Maqbool)
Injection-Date: Wed, 02 Nov 2022 05:45:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1849
 by: Shahid Maqbool - Wed, 2 Nov 2022 05:45 UTC

Dear all,

I have data files in the order like:

data_100.dat
data_200.dat
data_300.dat
....
data_10000.dat

here 100, 200, 300, ..., 10000 are the time steps.

I can successfully plot surface plot for data file e.g., 'data_10.dat' with the command i.e.,

splot 'data_100.dat' matrix with pm3d notitle

Now, i want to make animation for my data files to see the
continuous evolution of the system.

I have gone throught the book 'Gnuplot in Action' and section 11.5 shows some animations, but it is not telling about loading different files. Also the online demos like

https://gnuplot.sourceforge.net/demo/animate2.html

are not very helpful in this case.

So my question is, which commands or keywords should i use to load the continuous files and display the animation on the console?

Thanks a lot.

Best regards,
Shahid

Re: animation from data files

<jsfgm9Fs5aoU1@mid.individual.net>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=120&group=comp.graphics.apps.gnuplot#120

 copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: o.schu...@enhydralutris.de (Olaf Schultz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: animation from data files
Date: Wed, 2 Nov 2022 16:29:13 +0100
Lines: 51
Message-ID: <jsfgm9Fs5aoU1@mid.individual.net>
References: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 8zj9Pkf4be+E12XJsB5L7AI5yaWaNn8XppiS3OAM8CUP1FxELe
Cancel-Lock: sha1:ZumgVOUAzyzTqi7yfArnI7gUpb8=
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101
Thunderbird/107.0
Content-Language: de-DE
In-Reply-To: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
 by: Olaf Schultz - Wed, 2 Nov 2022 15:29 UTC

Am 02.11.22 um 06:45 schrieb Shahid Maqbool:
> Dear all,
>
> I have data files in the order like:
>
> data_100.dat
> data_200.dat
> data_300.dat
> ...
> data_10000.dat
>
> here 100, 200, 300, ..., 10000 are the time steps.
>
> I can successfully plot surface plot for data file e.g., 'data_10.dat' with the command i.e.,
>
> splot 'data_100.dat' matrix with pm3d notitle
>
> Now, i want to make animation for my data files to see the
> continuous evolution of the system.
>
> I have gone throught the book 'Gnuplot in Action' and section 11.5 shows some animations, but it is not telling about loading different files. Also the online demos like
>
> https://gnuplot.sourceforge.net/demo/animate2.html
>
> are not very helpful in this case.
>
> So my question is, which commands or keywords should i use to load the continuous files and display the animation on the console?
>
> Thanks a lot.
>
> Best regards,
> Shahid

Here something like that (for a temperature-profile in the soil):

set grid
set terminal gif animate delay 0.1
stats "reform4anim.csv" nooutput
set output "animated.gif"
set xrange [0:15]
set yrange [-200:10]
do for [i=1:int(STATS_blocks):4] {plot "reform4anim.csv" u 2:1 index
(i-1) with linespoints t "\@time","" u 2:1:3 index (i-1) w labels t
"","Bodensonde_Statistik_h.csv" u 3:1 t "max" lc "red","" u 5:1 t "min"
lc "blue","" u 4:1 t "avg" lc "black"}

HTH, Olaf

Re: animation from data files

<tk6cdf$er8v$1@solani.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=121&group=comp.graphics.apps.gnuplot#121

 copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: mail....@gmx.net (Karl Ratzsch)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: animation from data files
Date: Sat, 5 Nov 2022 20:09:38 +0100
Message-ID: <tk6cdf$er8v$1@solani.org>
References: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 5 Nov 2022 19:09:35 -0000 (UTC)
Injection-Info: solani.org;
logging-data="486687"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.1
Cancel-Lock: sha1:antuooRnkQ1slcXeWe2WcbT+Eho=
In-Reply-To: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
Content-Language: de-DE
X-User-ID: eJwFwQkBwDAIA0BL/KVy0kH8S9hdeml9JyorkkkzfxIGtwNMvqZOL6hYQqnKkEFH3tm4Yj8k9BF3
 by: Karl Ratzsch - Sat, 5 Nov 2022 19:09 UTC

Something like this?

fname(n) = sprintf('data_%.f.dat',n)

n=100
while (n<=10000) {
plot fname(n)
n=n+100
}

Am 02.11.2022 um 06:45 schrieb Shahid Maqbool:
> Dear all,
>
> I have data files in the order like:
>
> data_100.dat
> data_200.dat
> data_300.dat
> ...
> data_10000.dat
>
> here 100, 200, 300, ..., 10000 are the time steps.
>
> I can successfully plot surface plot for data file e.g., 'data_10.dat' with the command i.e.,
>
> splot 'data_100.dat' matrix with pm3d notitle
>
> Now, i want to make animation for my data files to see the
> continuous evolution of the system.
>
> I have gone throught the book 'Gnuplot in Action' and section 11.5 shows some animations, but it is not telling about loading different files. Also the online demos like
>
> https://gnuplot.sourceforge.net/demo/animate2.html
>
> are not very helpful in this case.
>
> So my question is, which commands or keywords should i use to load the continuous files and display the animation on the console?
>
> Thanks a lot.
>
> Best regards,
> Shahid

Re: animation from data files

<f84cec9e-e72a-4a64-aabe-9c789b33cea3n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=122&group=comp.graphics.apps.gnuplot#122

 copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:ac8:4d03:0:b0:3a5:1b18:7747 with SMTP id w3-20020ac84d03000000b003a51b187747mr35994112qtv.538.1667814792334;
Mon, 07 Nov 2022 01:53:12 -0800 (PST)
X-Received: by 2002:a25:4fc1:0:b0:6bc:c570:f99e with SMTP id
d184-20020a254fc1000000b006bcc570f99emr47168228ybb.58.1667814792039; Mon, 07
Nov 2022 01:53:12 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 7 Nov 2022 01:53:11 -0800 (PST)
In-Reply-To: <tk6cdf$er8v$1@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=148.81.46.176; posting-account=zy6fMAoAAACeC4ovRlW3V5OdiBlIWiQw
NNTP-Posting-Host: 148.81.46.176
References: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com> <tk6cdf$er8v$1@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f84cec9e-e72a-4a64-aabe-9c789b33cea3n@googlegroups.com>
Subject: Re: animation from data files
From: rasoulka...@gmail.com (Russell Kajouri)
Injection-Date: Mon, 07 Nov 2022 09:53:12 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2664
 by: Russell Kajouri - Mon, 7 Nov 2022 09:53 UTC

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
> }
>
>
>
>
> Am 02.11.2022 um 06:45 schrieb Shahid Maqbool:
> > Dear all,
> >
> > I have data files in the order like:
> >
> > data_100.dat
> > data_200.dat
> > data_300.dat
> > ...
> > data_10000.dat
> >
> > here 100, 200, 300, ..., 10000 are the time steps.
> >
> > I can successfully plot surface plot for data file e.g., 'data_10.dat' with the command i.e.,
> >
> > splot 'data_100.dat' matrix with pm3d notitle
> >
> > Now, i want to make animation for my data files to see the
> > continuous evolution of the system.
> >
> > I have gone throught the book 'Gnuplot in Action' and section 11.5 shows some animations, but it is not telling about loading different files. Also the online demos like
> >
> > https://gnuplot.sourceforge.net/demo/animate2.html
> >
> > are not very helpful in this case.
> >
> > So my question is, which commands or keywords should i use to load the continuous files and display the animation on the console?
> >
> > Thanks a lot.
> >
> > Best regards,
> > Shahid

Re: animation from data files

<07acf207-092d-4419-82f2-f565a2f3d5e8n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=123&group=comp.graphics.apps.gnuplot#123

 copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:ac8:5bc6:0:b0:3a5:8a07:8208 with SMTP id b6-20020ac85bc6000000b003a58a078208mr6907486qtb.18.1667876288250;
Mon, 07 Nov 2022 18:58:08 -0800 (PST)
X-Received: by 2002:a81:7744:0:b0:360:d263:b562 with SMTP id
s65-20020a817744000000b00360d263b562mr49298979ywc.334.1667876288020; Mon, 07
Nov 2022 18:58:08 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 7 Nov 2022 18:58:07 -0800 (PST)
In-Reply-To: <f84cec9e-e72a-4a64-aabe-9c789b33cea3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=141.223.63.187; posting-account=XnSkHAoAAADfjJd2J8yTdEJJrrgeBtts
NNTP-Posting-Host: 141.223.63.187
References: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
<tk6cdf$er8v$1@solani.org> <f84cec9e-e72a-4a64-aabe-9c789b33cea3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <07acf207-092d-4419-82f2-f565a2f3d5e8n@googlegroups.com>
Subject: Re: animation from data files
From: shahid...@gmail.com (Shahid Maqbool)
Injection-Date: Tue, 08 Nov 2022 02:58:08 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2484
 by: Shahid Maqbool - Tue, 8 Nov 2022 02:58 UTC

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

n=100
while (n<=10000){
fname = sprintf('data_%d.dat',n)
splot fname matrix with pm3d notitle
n=n+100
}

but i always get this error:

more> ;splot fname(n) matrix with pm3d notitle ;n=n+100;
^
cannot output binary data to wgnuplot text window

gnuplot>

Re: animation from data files

<tkcrbk$3rljd$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=124&group=comp.graphics.apps.gnuplot#124

 copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: animation from data files
Date: Tue, 8 Nov 2022 07:01:26 +0100
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <tkcrbk$3rljd$1@dont-email.me>
References: <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>
<tk6cdf$er8v$1@solani.org>
<f84cec9e-e72a-4a64-aabe-9c789b33cea3n@googlegroups.com>
<07acf207-092d-4419-82f2-f565a2f3d5e8n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Nov 2022 06:01:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5385bfa6c6d7a48ca45eeb6d72387beb";
logging-data="4052589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NYs65maLr36Px69wzO6hZG+cfdLdj2Fc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.4.1
Cancel-Lock: sha1:jYjb3CZnI6VCPqo/uJlwmH1XQMU=
In-Reply-To: <07acf207-092d-4419-82f2-f565a2f3d5e8n@googlegroups.com>
Content-Language: de-DE, en-GB
 by: Jörg Buchholz - Tue, 8 Nov 2022 06:01 UTC

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

You must specify a output file name.
set out 'filename.gif'

> n=100 while (n<=10000){ fname = sprintf('data_%d.dat',n) splot fname
> matrix with pm3d notitle n=n+100 }
>
>
> but i always get this error:
>
> more> ;splot fname(n) matrix with pm3d notitle ;n=n+100; ^ cannot
> output binary data to wgnuplot text window
>
> gnuplot>

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor