上記のガソリン価格のグラフはgnuplotを使って次のように作成しています…
- 以下のようなデータ・ファイル(petrol.dat)1を作成する
2005-04-02 109.00 (snip) 2006-09-26 137.00
- データ・ファイルを,以下のスクリプトで処理する
set xdata time set timefmt "%Y-%m-%d" set format x "%d %b\n%Y" set yrange [100:145] unset key unset title set xlabel "[date]" set ylabel "[yen/litter]" plot "petrol.dat" using 1:2 with lp pause -1 set terminal png crop set output "price_of_petrol.png" plot "petrol.dat" using 1:2 with lp
1行は"年(西暦)-月-年 価格"というフォーマット. ↩︎