From: HAMED A. <s.h...@gm...> - 2010-05-17 04:55:03
|
i have several files for different times and i want to make an animation with them but i don't know how to do that by splot. |
From: Smstry <sm...@gm...> - 2010-05-24 20:15:05
|
let us say you have many files in each one of them data : x y try to put all the data in one file and separate them with an empty line .each block corresponding to a given time . you will get some thing like this : # x y 0.5 0.3 0.6 0.4 0.7 0.5 0.5 1.5 0.6 1.2 0.7 1.3 0.5 1.9 0.6 1.8 0.7 1.3 notice that the empty lines are important (means that we define blocks.each one for a given value of t ) 1) call that file for example : output.dat 2) create another file and call it for example: plot.gnu 3) in this file (plot.gnu) write : n=10 # n present here the number of blocks in your file plot "output.dat" using 1:2 every :::i::i i=i+1 if i<n reread 4) in command box write : i=0 #initializing the value of i load "plot.gnu" hope this helps you HAMED AHMADI wrote: > > i have several files for different times and i want to make an animation > with them but i don't know how to do that by splot. > ------------------------------------------------------------------------------ > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/how-to-make-animation-tp28590009p28661359.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |