2015-09-17 58 views
2

我是Gnuplot的新手,並從gnuplot 5.0.0開始。這裏是我的問題: 考慮一個gnuplot的腳本命名save.gpl的很簡單的例子:gnuplot 5.0'設置輸出文件名'在gnuplot腳本不起作用

set terminal dumb 
plot sin(x) with linespoints pointtype 5, cos(x) w boxes lt 4 
set term png 
set output 「graph.png」 
replot 
set term dumb 

當我嘗試從shell終端運行此腳本我的MAC(OX 10.0):
$ gnuplot的save.gpl
它扔在第4行(設定的輸出「graph.png」)一個錯誤說:

「save.gpl」,第4行:內部錯誤:STRING操作者施加到非STRING類型。

同樣的事情發生時,我嘗試從gnuplot的加載我的腳本: 的gnuplot>負載save.gpl

但是,如果我在腳本一次一個在執行每個命令「gunplot>」模式,一切都很好。

不過,我需要使用 組輸出「filename.png」 語句大了很多劇本數次救幾個地塊。因此,已經在腳本中使用這種說法。提前

謝謝。

回答