我qe.conf通參數GNUPLOT配置文件
#qe.conf
reset
set terminal png truecolor
set output "qe.png"
set autoscale
set style data lines
plot "qe.txt" using 1:2 title "%Red", '' using 1:3 title "%G-r", '' using 1:4 title "%G-b", '' using 1:5 title "%R"
set output
我從一個shell腳本中調用這個gnuplot的配置文件。我想將變量傳遞給這個配置文件。任何人都可以建議我該怎麼做?
我試過1件東西。 我在變量$ source中有數據文件。所以我在shell腳本中試過以下命令:
gnuplot -e "filename=$source" qe.conf
我很困惑...您gnuplot腳本('qe.conf')從不嘗試使用變量'filename'。我認爲應該正確設置變量(IIRC)。 – mgilson 2014-11-07 01:05:12