loop in gnuplot ? - Graphics
This is a discussion on loop in gnuplot ? - Graphics ; Hello,
For an animated gif, I will need about 25 frames. Is there a way to
generate them directly with gnuplot (I am using the 4.0 version) or do I
need to make an external script ?
Thank you !
...
-
loop in gnuplot ?
Hello,
For an animated gif, I will need about 25 frames. Is there a way to
generate them directly with gnuplot (I am using the 4.0 version) or do I
need to make an external script ?
Thank you !
Cecile
--
Dr. Cécile Hébert, Inst. f. Festkörperphysik
TU Wien, Wiedner Hauptstrasse 8-10 A-1040 WIEN
cecile.hebert@tuwien.ac.at tel +43 1 58 801 138 15 fax - 138 99
http://tem.atp.tuwien.ac.at/leute/cecile.html
http://www.ncc.at/cecile/photos/index.html
-
Re: loop in gnuplot ?
Cecile Hebert <cecile.hebert@tuwien.ac.at> wrote:
> Hello,
> For an animated gif, I will need about 25 frames. Is there a way to
> generate them directly with gnuplot (I am using the 4.0 version) or do I
> need to make an external script ?
Gnuplot can do loops, but it's a bit tricky. See 'help reread', 'help if'
and the 'animate.dem' example.
--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
-
Re: loop in gnuplot ?
On 2006-08-27, Cecile Hebert <cecile.hebert@tuwien.ac.at> wrote:
> For an animated gif, I will need about 25 frames. Is there a way to
> generate them directly with gnuplot (I am using the 4.0 version) or do I
> need to make an external script ?
You can call a file use a recursively.
I find it's almost always faster and easier to write a small
Python program (using http://gnuplot-py.sourceforge.net/) when
you want to anything complex like that.
--
Grant Edwards grante Yow! MMM-MM!! So THIS is
at BIO-NEBULATION!
visi.com
-
Re: loop in gnuplot ?
In article <slrnef2l8d.qto.cecile.hebert@garfield.atp.tuwien.ac.at>,
Cecile Hebert <cecile.hebert@tuwien.ac.at> wrote:
>
>For an animated gif, I will need about 25 frames. Is there a way to
>generate them directly with gnuplot (I am using the 4.0 version) or do I
>need to make an external script ?
Version 4.0
You could use a "reread" loop to make the individual frames
but you will need a script of some sort to compile them into
an animation
Version 4.1
Supports "set term gif animate"
See
http://gnuplot.sourceforge.net/demo_4.2/animate2.html
--
Ethan A Merritt
-
Re: loop in gnuplot ?
On 2006-08-27, Grant Edwards <grante@visi.com> wrote:
> On 2006-08-27, Cecile Hebert <cecile.hebert@tuwien.ac.at> wrote:
>
>> For an animated gif, I will need about 25 frames. Is there a way to
>> generate them directly with gnuplot (I am using the 4.0 version) or do I
>> need to make an external script ?
>
> You can call a file use a recursively.
>
> I find it's almost always faster and easier to write a small
> Python program (using http://gnuplot-py.sourceforge.net/) when
> you want to anything complex like that.
Yes, I did it with a shell script, it is just a few lines.
Thanks
Cecile
>
--
Dr. Cécile Hébert, Inst. f. Festkörperphysik
TU Wien, Wiedner Hauptstrasse 8-10 A-1040 WIEN
cecile.hebert@tuwien.ac.at tel +43 1 58 801 138 15 fax - 138 99
http://tem.atp.tuwien.ac.at/leute/cecile.html
http://www.ncc.at/cecile/photos/index.html
-
Re: loop in gnuplot ?
Ethan Merritt wrote:
> You could use a "reread" loop to make the individual frames
> but you will need a script of some sort to compile them into
> an animation
I am not at all experienced in hacking the gnuplot source code,
but wouldn't it be a fairly simple (and useful) extension to
clone the code taking care of the "if" statement and turn it
into code implemeting a similarly working "while" statement?
i.e.
i = 0
while (i < 10) plot sin(x+i); i = i+0.1
perhaps a suggestion for v. 4.x?
Similar Threads
-
By Application Development in forum Graphics
Replies: 4
Last Post: 12-19-2007, 01:05 AM
-
By Application Development in forum labview
Replies: 0
Last Post: 12-17-2007, 03:40 AM
-
By Application Development in forum labview
Replies: 0
Last Post: 09-20-2007, 06:40 PM
-
By Application Development in forum Graphics
Replies: 2
Last Post: 06-01-2007, 01:37 PM
-
By Application Development in forum Graphics
Replies: 0
Last Post: 10-19-2006, 05:05 PM