如何给gnuplot命令行参数

Ama*_*tam 4 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
Run Code Online (Sandbox Code Playgroud)

此脚本将由另一个生成所需文件名的shell脚本运行.

任何帮助赞赏.

cab*_*bad 8

您还可以使用-egnuplot 的命令行选项.请参阅此问题以获取示例:如何将命令行参数传递给gnuplot?