次のコマンドでヒストグラムをプロットしています。
n=3
max=0.5
min=-2.5
width=(max-min)/n
hist(x,width)=width*floor(x/width)+width/2.0
plot "< awk '{if (\$1<3.9 && \$1>3.8) {print \$0}}' /path_to_file/" u (hist(\$2,width)):(1.0) smooth freq w boxes lc rgb "black" lt 1 lw 0.5 notitle
これは私にこれを取得します:
どうやら、私はデータファイルに基づいて推測しているgnuplot
ようで、 [0.5:- 0.5:-1.5]
間隔 [0.5:-0.5]-[-0.5:-1.5]-[-1.5:-2.5] を使用するには、これらのビンが必要です。これにより、ビンは [0.0:-1.0:-2.0] の中心になります。
どうすればこれを達成できますか?