# set term png small color
#################################################
# Used to generate the the distribution of self-MI graph.
#
#set term png
#set out 'mi-dist.png'
set term postscript eps enhanced color 24
set out 'mi-dist.eps'
set key right top
set logscale y
set title "Distribution of MI"
set xlabel "MI"
set ylabel "Probability"
set yrange [5e-6:0.2]
set format y "10^{%L}"
sigma=3.7
mu=-1.85
g(x) = exp(-(x-mu)**2/(2*sigma**2))/(sigma * sqrt(2*3.14159))
plot "mi-dist.dat" using 2:3 with lines lw 2 title "", \
"mi-dist.dat" using 2:(g($2)) with lines lw 2 title "G(-1.8, 3.7)"
#################################################
# Used to generate the the distribution of self-MI graph.
#
#set term png
#set out 'mi-dist-tsup.png'
set term postscript eps enhanced color 24
set out 'mi-dist-tsup.eps'
set key right top
set logscale y
set title "Distribution of MI"
set xlabel "MI"
set ylabel "Probability"
set yrange [5e-6:0.2]
set format y "10^{%L}"
sigma=3.7
mu=-1.85
g(x) = exp(-(x-mu)**2/(2*sigma**2))/(sigma * sqrt(2*3.14159))
plot "mi-dist-tsup.dat" using 2:3 with lines lw 2 title "now", \
"mi-dist.dat" using 2:3 with lines lw 2 title "before", \
"mi-dist-uniq.dat" using 2:3 with lines lw 2 title "uniq", \
"mi-dist-tsup.dat" using 2:(g($2)) with lines lw 2 title "G(-1.8, 3.7)"
#################################################