Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4498
| 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 | csiph.com!weretis.net!feeder6.news.weretis.net!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> (permalink) |
| Subject | Re: animation from data files |
| From | Shahid Maqbool <shahid718@gmail.com> |
| Injection-Date | Tue, 08 Nov 2022 02:58:08 +0000 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Received-Bytes | 2484 |
| Xref | csiph.com comp.graphics.apps.gnuplot:4498 |
Show key headers only | View raw
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>
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
animation from data files Shahid Maqbool <shahid718@gmail.com> - 2022-11-01 22:45 -0700
Re: animation from data files Olaf Schultz <o.schultz@enhydralutris.de> - 2022-11-02 16:29 +0100
Re: animation from data files Karl Ratzsch <mail.kfr@gmx.net> - 2022-11-05 20:09 +0100
Re: animation from data files Russell Kajouri <rasoulkajouri@gmail.com> - 2022-11-07 01:53 -0800
Re: animation from data files Shahid Maqbool <shahid718@gmail.com> - 2022-11-07 18:58 -0800
Re: animation from data files Jörg Buchholz <bookwood4new@freenet.de> - 2022-11-08 07:01 +0100
csiph-web