可在以下在gnuplot的呢?如果是的话,怎么样?
Can the following be done in gnuplot? If yes, how?
我有时间与与T,X,Y,Z作为标题的表位置(X,Y,Z)数据。
I have data for time vs position(x,y,z) in a table with t,x,y,z as headers.
我想知道如果我能以某种方式绘制同一时间与每个时间步长暂停后一个predefined空间内粒子的位置;这样我可以看到随着时间的颗粒位置的变化。我也想知道我是否可以得出从previous位置连续线当前位置,这样我可以清楚地看到它的过去的轨迹。
I would like to know if I can somehow plot the same time vs position of the particle inside a predefined space with a pause after each time step; so that i can see the evolution of the particles position with time. I would also like to know if I can draw a continuous line from the previous position to the current position so that I can actually see the track of its past.
实例数据:
可以说,在predefined空间是一箱10x10x10和我的粒子在3秒以下的位置。
Lets say the predefined space is a box of 10x10x10 and my particle has the following positions over 3 seconds.
t x y z
0 1 2 3
1 2 3 4
2 3 4 5
3 4 5 6
我怎么看颗粒的跟踪!我的想法是,如果我可以用一点点暂停,每次一步的情节,它看起来像我可以只捕获使用屏幕捕捉软件动画...
How do i see the tracking of the particle! my idea is that if i can pause the plot of every time step by a little bit, it will look like an animation which i can just capture using a screen capture software...
除非,这个数据可以使用gnuplot的太动画
UNLESS, this data can be animated using gnuplot too
有哪些做到这一点更有效和/或优雅的任何其他软件,如果gnuplot的是不是合适的工具!?
Is there any other software which does this more efficiently and/or elegantly if gnuplot is not the right tool!?
任何帮助将是AP preciated!
Any help would be appreciated!
感谢。
创建文件 main.gp
及运行 gnuplot的main.gp
或负荷main.gp
在gnuplot的外壳。输出是point.gif。
文档
http://www.gnuplot.info/documentation.html
你也可以在gnuplot的外壳键入帮助
。
Create file main.gp
and run gnuplot main.gp
or load "main.gp"
in gnuplot shell. Output is in point.gif.
Documentation
http://www.gnuplot.info/documentation.html
Also you can type help
in gnuplot shell.
main.gp
set term gif animate delay 30 size 400, 400
set output "point.gif"
do for [n=1:4] {
splot [0:7][0:7][0:7] "data" u 2:3:4 every :::::n w lp t sprintf("n=%i", n)
}
数据
t x y z
0 1 2 3
1 2 3 4
2 3 4 5
3 4 5 6
编辑:我切换到迭代的@mgilson建议。
I switched to iterations as @mgilson suggested.