|
From: Nunzio L. <nun...@gm...> - 2012-07-20 18:23:10
|
Hi think I've found the solution, something like created a file "command.gp": set parametric plot "$0" using 1:(a=column(1),b=column(2),NaN) every ::count::count notitle, cos(t)+a,sin(t)+b,"$0" u 1:2 every ::::count w lines count = count+1 if (count<1000) reread and then in gnuplot command-line: count=0 call 'command.gp' 'datafile.dat' Now, the "if. ..." line presumes the number of datapoints is fixed (i.e. 1000 in this case). Is there a way to change this into "reread until End-of-File is reached"?? Regards, NL. 2012/7/20 Nunzio Losacco <nun...@gm...> > Hi everyone, > > I'm thinking of creating an animated plot. > > I have a datafile containing with six columns: > the first column is the timestep value, monotonically increasing from 0.0 > to 10.0. > For each timestep value in column 1 columns 2, 3 and 4 contain the > coordinates of the centre and the radius of a circle whereas columns 5 and > 6 contain the coordinates of a given point on the former circle. > My animation should show the evolution of the circle and a line indicating > the path of the point indicated by the coords in coumns 5 and 6. > > Is it possible to do something like that with gnuplot 4.7 ? > > > Regards, > > NL > > |