LoginSignup
2
2

More than 5 years have passed since last update.

コマンドラインからgnuplotへのワンライナー

Last updated at Posted at 2013-09-11

最近、ネタが無いので、消化試合です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の勉強になればいいか。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2