Gnuplot Gif问题

问题描述 投票:0回答:1

我正在尝试为偏微分方程的解做一个表述。在一些相关的帖子中,我发现我应该按以下方式拆分数据:

-1.000000 0.000000
-0.600000 0.000000
-0.200000 0.654508
0.200000 0.654508
0.600000 0.000000
1.000000 0.000000
1.400000 0.000000
1.800000 0.000000
2.200000 0.000000
2.600000 0.000000
3.000000 0.000000


-1.000000 0.000000
-0.600000 0.000000
-0.200000 0.163627
0.200000 0.654508
0.600000 0.490881
1.000000 0.000000
1.400000 0.000000
1.800000 0.000000
2.200000 0.000000
2.600000 0.000000
3.000000 0.000000

...

然后我读到类似的东西应该起作用:

set terminal gif animate delay 100
set output 'name.gif'
stats 'data.dat' nooutput
do for [i=1:int(STATS_blocks)]{plot 'data.dat' every i using 1:2 with lines notitle}

但是我得到了this。而如果我单独绘制每个数据块,则完全不同。我的Gnuplot代码有什么问题?

animation gnuplot gif
1个回答
1
投票

我认为您想要index i而不是every i

© www.soinside.com 2019 - 2024. All rights reserved.