reset
set terminal postscript enhanced color size 10,4 "Times" 10

set bmargin 0
set lmargin 0
set rmargin 0
set tmargin 0

set border lw 1.5

set output "contour.eps"


unset xlabel
set size square
set pm3d map

set palette rgbformulae 22,13,10

#set multiplot title 'Comparison of two-sample tests, n_1 = n_2 = 10' layout 2,4
set multiplot layout 2,5


#############
set ylabel "{/Symbol s}_2"
set title 'J-statistic'
splot 'H_contour.txt'notitle

unset ylabel
set title 'NP J-statistic'
splot 'NPH_contour.txt'notitle

set cbrange [0:25]
set title 'E-statistic'
splot 'E_contour.txt' notitle
set autoscale cb

set title 'NN-statistic'
splot 'NN_contour.txt' notitle

set title 'KS-statistic'
splot 'KS_contour.txt' notitle

#############

set ylabel "{/Symbol s}_2"
set xlabel "{/Symbol m}_2"
set cbrange [0:1]

set title 'H, p-value'
splot 'H_contourp.txt' notitle

unset ylabel
set title 'NP J, p-value'
splot 'NPH_contourp.txt' notitle

set title 'E, p-value'
splot 'E_contourp.txt' notitle

set title 'NN, p-value'
splot 'NN_contourp.txt' notitle

set title 'KS, p-value'
splot 'KS_contourp.txt' notitle
#splot 'KS_contourp.txt' using 1:2:(1.0-$3) notitle
#############

unset multiplot  
unset label