電気ひつじ牧場

技術メモ

gnuplotのスクリプトをコマンドラインから実行したい

set title "test"
plot sin(x)

これをtest.pltとして

$ gnuplot test.plt

としても何も起きない(ように見える)。実際にはグラフが表示されてすぐ消えてるらしい。

test.pltを次のようにすると、グラフが表示される。

set title "test"
plot sin(x)
pause -1