我正在编写一个脚本来一次绘制多个文件中的多个文件。我也想保存每个对应于数据文件的图的输出。我们怎样才能给GNUPlot两个参数。例如:示例GNUPlot脚本如何给命令行参数gnuplot
set xlabel "a"
set ylabel "b"
set zlabel "c"
set term postscript
set output "??" #'??' implies variable i.e. take file name from commandline
splot "??" with points,"??" with points #'??' implies variable i.e. take file name from commandline
并且此脚本将由另一个生成所需文件名的shell脚本运行。
任何帮助表示赞赏。
您是否找到'-e'选项的任何官方文档?我正在寻找几个小时,仍然没有运气。 – Wolf
@Wolf您可以在gnuplot文档中的“批处理/交互式操作”部分找到它。 – Christoph
@Christoph感谢,但它仍然有点令人困惑:我发现了同一版本的文档的两个版本,[批处理/交互操作](http://gnuplot.sourceforge.net/docs_4.2/node46.html)和[批处理/ Interactive_Operation - Gnuplot:交互式绘图程序](http://soc.if.usp.br/manual/gnuplot-doc/htmldocs/Batch_002fInteractive_005fOperation.html)。这是如此根本,我不能相信为什么这些信息是这样隐藏的。 – Wolf