【发布时间】:2017-09-24 23:49:50
【问题描述】:
在 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) 的参数,但没有成功。有什么建议吗?
【问题讨论】: