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