Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3644
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Is Subsecond Pause Possible? |
| Date | 2017-05-14 10:54 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <ofa5e8$4q5$1@dont-email.me> (permalink) |
| References | <of9rk60164o@news4.newsguy.com> |
F. Russell wrote:
> Hello,
>
> I am attempting to produce simple animations using gnuplot:
>
> set parametric
>
> a_time=0
>
> plot f(a_time), g(a_time) with points pt 7 ps 2 lc 2
>
> do for [i=1:400] { \
> replot f(a_time), g(a_time) with points pt 7 ps 2 lc 2; \
> a_time=a_time+0.01; \
> pause 0.3 }
>
> This method works very well in producing a moving point
> but the interval between replots is too large. Even though
> I have specified a 0.3 second pause, the pause is actually
> 1 second.
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.
Nevertheless, if I change that to "pause delta" and set
"delta = 0.01" before the loop then I see a
rapid animation despite the redundant replotting.
> The gnuplot manual states:
>
> "The time is rounded to an integer number of seconds if subsecond
> time resolution is not supported by the given platform."
>
> The terminals I use are x11 and wxt on a GNU/Linux Intel Core i7
> system.
>
> Is a subsecond pause possible with gnuplot or will the time
> always be rounded to the next second?
I think all modern platforms support subsecond resolution.
The caveat is left over from MSDOS days.
Ethan
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Is Subsecond Pause Possible? "F. Russell" <fr@random.info> - 2017-05-14 15:03 +0000
Re: Is Subsecond Pause Possible? Karl Ratzsch <mail.kfr@gmx.net> - 2017-05-14 19:07 +0200
Re: Is Subsecond Pause Possible? Ethan A Merritt <EAMerritt@gmail.com> - 2017-05-14 10:54 -0700
Re: Is Subsecond Pause Possible? "F. Russell" <fr@random.info> - 2017-05-14 18:47 +0000
csiph-web