我试图将gnuplot环境命令和数据绘图命令分离开来。gnuplot脚本是:
set terminal postscript eps enhanced color
set output "/out.eps"
set size 0.80,0.80
...
...
load 'path/to/plot_command.txt其中plot_command.txt有以下命令:
plot '< tail -7 /Data2.stat' using 1:2 title "Data2" with lp lw 4, \
'< tail -7 /Data3.stat' using 1:2 title "alnmindrepl07" with lp lw 4, \
....................................但是,我得到以下错误:
绘图'< tail -7 /Data2.stat‘使用1:2标题"Data2“与lp lw 4,
^
"/plot_command.txt",第2行:绘图所需的函数
有什么建议吗?
发布于 2012-02-10 22:26:34
您不应该在plot_command.txt的第二行末尾有一个",“。逗号表示将有另一个(第三个)函数,因此出现错误。试一试:
plot '< tail -7 /Data2.stat' using 1:2 title "Data2" with lp lw 4, \
'< tail -7 /Data3.stat' using 1:2 title "alnmindrepl07" with lp lw 4https://stackoverflow.com/questions/9233917
复制相似问题