Gnuplot 无变量 "pause"
Gnuplot no variable "pause"
使用以下 gnuplot 脚本
set logscale y
set title "Residuals"
set ylabel 'Residual'
set xlabel 'Iteration'
plot "< cat log | grep 'solving for p' | cut -d ' ' -f9 | tr -d ','" title 'p' with lines,\
pause 1
和这个版本
$ gnuplot --version
gnuplot 4.6 patchlevel 2
我收到以下错误:
"residuals", line 6: undefined variable: pause
我该如何解决?
您的 plot 命令不正确,因为该行以“,\”结尾,这意味着您的行正在继续并且 pause
被视为传递给 plot 的变量。所以暂停不存在。
我建议删除“,\”。
使用以下 gnuplot 脚本
set logscale y
set title "Residuals"
set ylabel 'Residual'
set xlabel 'Iteration'
plot "< cat log | grep 'solving for p' | cut -d ' ' -f9 | tr -d ','" title 'p' with lines,\
pause 1
和这个版本
$ gnuplot --version
gnuplot 4.6 patchlevel 2
我收到以下错误:
"residuals", line 6: undefined variable: pause
我该如何解决?
您的 plot 命令不正确,因为该行以“,\”结尾,这意味着您的行正在继续并且 pause
被视为传递给 plot 的变量。所以暂停不存在。
我建议删除“,\”。