Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4496

Re: animation from data files

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: animation from data files
Date 2022-11-05 20:09 +0100
Message-ID <tk6cdf$er8v$1@solani.org> (permalink)
References <db4a49ca-2e44-4f78-8619-3d165b29404fn@googlegroups.com>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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