在gnuplot中,您可以创建类似
的直方图binwidth=#whatever#
set boxwidth binwidth
bin(x,width)=width*floor(x/width)+binwidth/2.0
plot "gaussian.data" u (bin($1,binwidth)):(1.0/10000) smooth freq w boxes
目前,我的垃圾箱似乎集中在右边缘。也就是说,对应于x = 0的bin的右边缘高于零。我想让垃圾箱以中心为导向。也就是说,我希望每个bin的中心高于相应的x值。我试过搞乱bin(x,width)的论点但是没有成功。有什么建议吗?
答案 0 :(得分:1)