term3.gp (490B)
1 reset 2 3 stats 'data.dat' nooutput 4 # show variables all 5 max=STATS_max 6 min=STATS_min 7 8 n=1000 9 width=(max-min)/n 10 hist(x,width)=width*floor(x/width)+width/2.0 11 12 set xrange [min:max] 13 set yrange [0:] 14 15 unset xtics 16 unset ytics 17 unset border 18 set xtics out nomirror norotate offset 0,0 19 set ytics out nomirror norotate 20 set ytics in nomirror norotate offset 0,0 21 set tics scale 0,0,0,0 22 23 set xlabel "x" 24 25 set terminal dumb size 100, 25 26 plot "data.dat" u (hist($1,width)):(1.0) smooth freq w boxes notitle