Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: animation from data files Date: Sat, 5 Nov 2022 20:09:38 +0100 Message-ID: References: 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: Content-Language: de-DE X-User-ID: eJwFwQkBwDAIA0BL/KVy0kH8S9hdeml9JyorkkkzfxIGtwNMvqZOL6hYQqnKkEFH3tm4Yj8k9BF3 Xref: csiph.com comp.graphics.apps.gnuplot:4496 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