僕の備忘録 gnuplot編
備忘録なぞパソコンのメモ帳なりワードなりに収めて置けばいいのだけれど、僕のパソコンの調子が悪くて突然見れなくなることをが最近多いので、ここに留めておくことにしました。僕以外の人が見ても意味はないと思います。
・各データをひとつのグラフにまとめるとき、データに下駄をはかせる。
入力例
plot "2017.dat" title"x=0" with lines,"2017_x005.dat" title"x=0.05" with lines,"2017_x010.dat" title "x=0.10"with lines ,"2017_x015.dat" title "x=0.15" with lines
上のグラフについて4つのデータが重なって見えにくいとき、データ自体に「下駄をはかせる」と見やすくなる。
gnuplot> plot "2017.dat" title"x=0" with lines
gnuplot> replot"2017_x005.dat" using 1:($2+22000) title"x=0.05 +22000" with lines
gnuplot> replot"2017_x010.dat" using 1:($2+30000) title"x=0.10 +30000" with lines
gnuplot> replot"2017_x015.dat" using 1:($2+40000) title"x=0.15 +40000" with lines
これぞ秘技下駄履かせ戦法
with lines:点を線にする
set grid:グラフに格子点を入れる
・なんかいろいろ白くしちゃう
三種の神器ならぬ白紙の神器
unset border:枠組みを消す
unset tics:目盛りを消す
unset key:縦軸の数字を消す