squiggle.c

Self-contained Monte Carlo estimation in C99
Log | Files | Refs | README

term6.gp (505B)


      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:45000]
     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 '<cat' u (hist(0,width)):(1.0) smooth freq w boxes notitle
     29 
     30