3 # argument 1 is path to input
7 if [[ X
"" = X
"${arrFN[2]}" ]]; then
11 echo -e "[$1] -> ${arrFN[0]} ${arrFN[1]} ${arrFN[2]}\ncb_max: $2"
14 set term png font "/bak/seqdata/sperm/sssC2/arial.ttf" 48 size 2102,2102 truecolor linewidth 3
18 set title "Heatmap for [$1]"
22 set ylabel "${arrFN[1]}"
23 set xlabel "${arrFN[2]}"
27 set palette rgbformulae 22,13,10 #color
28 set palette rgbformulae 3,3,3 #gray
29 #set palette rgbformula 34,35,36 #heat
30 #set palette negative #just for fun
32 #set cbrange [0:10000]
37 set xrange [-0.5:40.5]
38 set yrange [-0.5:40.5]
39 set xtics ("0" 0, "0.2" 8, "0.4" 16, "0.6" 24, "0.8" 32, "0.9" 36, ">1" 40)
40 set ytics ("0" 0, "0.2" 8, "0.4" 16, "0.6" 24, "0.8" 32, "0.9" 36, ">1" 40)
47 set cbtics font "/bak/seqdata/sperm/sssC2/arial.ttf, 40"
51 splot '$1' matrix with image
55 sh plotkmercnt.sh t100k.40.plot 10000
56 eg. find out/*.plot |while read a;do sh plotkmercnt.sh $a 100000;done