X-Received: by 10.129.83.197 with SMTP id h188mr1271030ywb.63.1494787694844; Sun, 14 May 2017 11:48:14 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!t26no905164qtg.1!news-out.google.com!h8ni7911qte.0!nntp.google.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3 From: "F. Russell" Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Is Subsecond Pause Possible? Date: 14 May 2017 18:47:48 GMT Organization: NewsGuy - Unlimited Usenet $23.95 Lines: 41 Message-ID: References: NNTP-Posting-Host: p6e70609307c3b8832dc6778f9a6fa2c84efbca4c99d58d19.newsdawg.com Mime-Version: 1.0 User-Agent: Pan/0.141 (Tarzan's Death; 168b179 tag: PAN_0_141) X-Received-Bytes: 1999 X-Received-Body-CRC: 3009994131 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xref: csiph.com comp.graphics.apps.gnuplot:3645 On Sun, 14 May 2017 10:54:21 -0700, Ethan A Merritt wrote: > > I am pretty sure you want "plot ..." rather than "replot...", > or else you want "replot;" with no trailing functions. > > As it stands your "replot" instruction creates a longer plot sequence > each time it executes, so by the end of your loop it is drawing > 400 plots on top of each other per iteration. I can see how > that might slow it down. > Thank you for that explanation. It does solve the problem. I need to set up a different graph before the animation and so I can't use "plot" command in the animation because it will destroy the original graph. I need to use the "replot" command. But now I can just plot the original graph and then plot the initial point of the animation using "replot f(t), g(t)". Then I run the rest of the animation only "replot;". set parametric # plot the first graph set trange [0:2*pi]; plot cos(t), sin(t) with lines lw 8 #plot the initial point of the animation with "replot f(t), g(t)" a_time=0 replot f(a_time), g(a_time) with points pt 7 ps 2 lc 2 # perform the animation with just "replot;" do for [i=1:400] { \ a_time=a_time+0.01; replot; \ pause 0.3 } Now the pauses are less than 1 second and the animation runs smoothly. Thanks again.