plot of (x,y) data with sqrt(y) errorbar by gnuplot

A shell script:

gnuplot << EOF
set terminal png
set output “tmpplot.png”
plot “inputfile.txt” using 1:2:(sqrt(\$2)) with ye
exit
EOF

単に \ でエスケープすればよかったんだ.

inputfile.txt には (x, y) という2列のデータが入っているとして.
# x y
0.0 10
0.5 250
1.0 1010


カテゴリー: 未分類 パーマリンク