# set terminal canvas  solid butt size 600,400 fsize 10 lw 1 fontscale 1 name "smooth_1" jsdir "."
# set output 'smooth.1.js'
set boxwidth 0.05 absolute
set xzeroaxis linetype 0 linewidth 1.000
set yzeroaxis linetype 0 linewidth 1.000
set zzeroaxis linetype 0 linewidth 1.000
set title "Uniform Distribution" 
bin(x, s) = s*int(x/s)
GPFUN_bin = "bin(x, s) = s*int(x/s)"
plot [-0.1:1.1][-0.4:1.5] "random-points" u 1:(0.25*rand(0)-.35) t '',      "" u (bin($1,0.05)):(20/300.) s f t 'smooth frequency' w boxes,      "" u 1:(1/300.) s cumul t 'smooth cumulative'