Animation GNUplot:'';预期的gif终端

Animation GNUplot:'';预期的gif终端,animation,plot,error-handling,gnuplot,gif,Animation,Plot,Error Handling,Gnuplot,Gif,我正在尝试使用GNUplot(版本4.6)生成一个动画,跟随两个不同情节的时间演变。我遇到的第一个问题是,一个单独的情节可以很好地设置动画,但当我尝试制作整个序列时,它只会绘制一个时间帧。 我现在遇到的问题是一个“;”预期错误。我对gnuplot有点陌生,不知道分号的作用是什么,也不知道在哪里可能需要分号。 这是我的整个脚本: set term gif small animate set output "./output/test.gif" #set title "Abundance" do

我正在尝试使用GNUplot(版本4.6)生成一个动画,跟随两个不同情节的时间演变。我遇到的第一个问题是,一个单独的情节可以很好地设置动画,但当我尝试制作整个序列时,它只会绘制一个时间帧。 我现在遇到的问题是一个“;”预期错误。我对gnuplot有点陌生,不知道分号的作用是什么,也不知道在哪里可能需要分号。 这是我的整个脚本:

set term gif small animate 
set output "./output/test.gif"
#set title "Abundance"

do for [ii=700:ii=900] {
   set multiplot
   set xrange [80:120]          #alt [0:180]
   set yrange [61:65]           #alt [0:110]

   set xtics 10
   set ytics 1
   set grid ytics lc rgb "#bbbbbb" lw 1 lt 1
   set grid xtics lc rgb "#bbbbbb" lw 1 lt 1
   set size ratio -1
   set style fill transparent solid 0.5
   set cbrange [1e-15:1e-03]
   set logscale cb
   set colorbox horizontal user origin 0.1, 0.15 size 0.8, 0.04
   set format cb "10e%L"
   unset key

   set palette rgb 33,13,10     # DEFAULT- this is the original one
   set origin 0,0
   set xlabel "N"
   set ylabel "Z"
   set cblabel "Abundance"
   plot './output/texts/abun_'.ii.'.txt' using 2:1:(0.5):(.5):3 w boxxyerrorbars lc palette title "Abundance"

   unset grid xtics
   unset grid ytics
   unset style fill 
   unset colorbox 
   set origin 0,0.35
   set yrange[61:65]
   set xrange [80:120]
   plot './output/texts/abun_'.ii.'.txt' using 2:1
   unset multiplot
}

终端显示错误在第39行,这是最后一行。任何帮助都将不胜感激。

至少Gnuplot
5.2
不支持
unset-grid-xtics
-它应该分为两个命令
unset-grid;未设置xtics…@ewcz哇,这就成功了!谢谢