最近、ネタが無いので、消化試合ですw
- 基本形
echo "pl 'hoge.dat'" | gnuplot
- 二つもいける
echo "pl 'hoge.dat', sin(x)" | gnuplot
- 複数行もいける
echo "set title 'the degree of ahoo'; pl 'hoge.dat'" | gnuplot
- 当然、eps出力+表示もお手のもの
echo "set term post enha eps color; set output 'hoge.eps'; set title 'the degree of ahoo'; pl 'hoge.dat'" | gnuplot && open hoge.eps
まあ、読んでくれた人にとって、シェルとgnuplotの勉強になればいいか。