【发布时间】:2016-04-13 03:51:50
【问题描述】:
它应该重置并制作动画。 我已经尝试了其他以前帖子中的所有建议,但我仍然有这个结果。
我的 datei.dat 有 4 列,每个块用空行分隔。
set autoscale
set datafile seperator ","
plot "datei.dat" index (i) u 1:2 t '1:2' with linespoints ,\
"datei.dat" index (i) u 1:3 t '1:3' with linespoints ,\
"datei.dat" index (i) u 1:4 t '1:4' with linespoints
replot
pause 1
i = i + 1
if(i<N) reread
动画.plt
reset
set term gif animate
set terminal gif animate delay 50
set output "plotalive.gif"
N = int(STATS_blocks)
i = 0
load "animate.plt"
set output
循环.plt
【问题讨论】:
-
您希望在哪个阶段重置什么?请更具体。
-
制作动图,需要
libgd支持。来自help gif:The animate option is available only if your local gd library supports the creation of animated gifs。试试set term gif animate; set out "test.gif"; do for [n=0:10] {plot sin(x*n) w l}; set out -
@bibi 我已经检查并确认我已经安装了 libgd。你的脚本也在我的电脑上运行。尽管如此,我还是无法将它应用到我的工作中。
标签: animation plot gnuplot gif