# First part - show the distributions with spikes etc
set border 2 ls 8
wi = 3
set linestyle 11 lt 1 lw wi
set linestyle 12 lt 2 lw wi
set linestyle 14 lt 4 lw wi
set tics out
set ytics nomirror

set nologs y
set xrange [0:370]
set xrange [0:351]
set xtics auto 
set ytics auto
set arrow 123 from 351,0 to 351, 0.0026739 nohead ls 2
set arrow 123 from 351,0 to 351, 0.0026739 nohead ls 5

plot "targetdist" u 1:2 t "rho"  w impulse ls 4,  "targetdist" u 1:3 t"tau" w impulse ls 1 
pause -1 "ready"
set noarrow 123
set xrange [0:37]
plot "targetdist" u 1:2 t "rho"  w impulse ls 14,  "targetdist" u 1:3 t"tau" w impulse ls 11 
pause -1 "ready"
set xrange [0:351]
set xtics auto 
set arrow 123 from 351,0 to 351, 0.0026739 nohead ls 5
set label 123 "spike at 337" at 333,0.02 right
set label 124 "tail beyond 338" at 347,0.04 center

plot "targetdist" u 1:2 t "rho"  w impulse ls 4,  "targetdist" u 1:3 t"tau" w impulse ls 1 
# plot "targetdist" u 1:2 t "rho"  w impulse ls 1,  "targetdist" u 1:3 t"tau" w impulse ls 4 
pause -1 "ready"
set noarrow 123
set nolabe 124
set nolabe 123

# Second part = empirical histograms
# derived from histo.gnu2 and 3
#Apr 26 2003.
# shows the three goodish settings then
# the need for the tail and spike 

set nokey
set key
set xtics 10000,500,12000
set xrange [10000:11750]
set noytics
set border 1 ls 8

set size 0.4,0.74
set term X
set nologs y
set autos y
load "histo.multi3"

# pause -1 'ready for logs'
# set logs y
# load "histo.multi3"

 
set origin 0.1,0.1
set size 0.8,0.8
set key

set autos y
set xrange [10000:11500]
set xrange [10000:19700]
set xrange [10000:15000]
set noytics
set border 1 ls 8

set xtics 10000,500,15000
set xtics 10000,1000,25000

pause -1 "Relevance of Spike and Tail ready"
set nologs y

plot '_his' u 1:5  t 'ORDINARY' w l ls 6,\
 '_hisns03.5' u 1:5 t 'No SPIKE' w l ls 1,\
 '_hisnt03.5' u 1:5 t 'No TAIL' w l ls 4,\
 '_hisnb03.5' u 1:5 t 'No TAIL or SPIKE' w l ls 3

plot '_his' u 1:5  t 'ORDINARY' w l  6,\
 '_hisns03.5' u 1:5 t 'No SPIKE' w l  1,\
 '_hisnt03.5' u 1:5 t 'No TAIL' w l  4,\
 '_hisnb03.5' u 1:5 t 'No TAIL or SPIKE' w l  3

pause -1 " ready for logs"

set logs y
set ytics 
set  yrange [0.0001:]
set autos y
rep




