# set term png small color
set xrange [0:1400]
#################################################
#
set term png
set out 'r12-cls-nwords.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-nwords.eps'
set key left top
set title "Number of Words in Class (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "N"
unset yrange
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:3 with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:3 with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:3 with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:3 with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:3 with lines lw 2 title "n=1 imprecise"
#################################################
#
set term png
set out 'r12-cls-self-mi.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-self-mi.eps'
set key right top
set title "Self-MI of Class (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "MI, in bits"
unset yrange
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:4 with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:4 with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:4 with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:4 with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:4 with lines lw 2 title "n=1 imprecise"
#################################################
#
set term png
set out 'r12-cls-self-rmi.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-self-rmi.eps'
set key left bottom
set title "Self-Ranked-MI of Class (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "MI, in bits"
unset yrange
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:5 with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:5 with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:5 with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:5 with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:5 with lines lw 2 title "n=1 imprecise"
#################################################
#
set term png
set out 'r12-cls-support.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-support.eps'
set key right top
set title "Log2 Support of Class (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "Bits"
unset yrange
log2(x) = log(x) / log(2)
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:(log2($6)) with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:(log2($6)) with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:(log2($6)) with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:(log2($6)) with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:(log2($6)) with lines lw 2 title "n=1 imprecise"
#################################################
#
set term png
set out 'r12-cls-logli.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-logli.eps'
set key right top
set title "Class Log Probability (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "Bits"
unset yrange
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:8 with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:8 with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:8 with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:8 with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:8 with lines lw 2 title "n=1 imprecise"
#################################################
#
set term png
set out 'r12-cls-fentropy.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-fentropy.eps'
set key right top
set title "Class Fractional Entropy (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "Entropy, in bits"
unset yrange
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:9 with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:9 with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:9 with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:9 with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:9 with lines lw 2 title "n=1 imprecise"
#################################################
#
set term png
set out 'r12-cls-compo-entropy.png'
# set term postscript eps enhanced color 20
# set out 'r12-cls-compo-entropy.eps'
set key right top
set title "Class Compositional Entropy (run-12; q=0.7)"
set xlabel "Merge ordinal"
set ylabel "Entropy, in bits"
unset yrange
plot "r12-p-cls-q0.7-c0.2-n4.dat" using 1:(abs($10)) with lines lw 2 title "n=4 precise", \
"r12-cls-q0.7-c0.2-n4.dat" using 1:(abs($10)) with lines lw 2 title "n=4 imprecise", \
"r12-cls-q0.7-c0.2-n3.dat" using 1:(abs($10)) with lines lw 2 title "n=3 imprecise", \
"r12-cls-q0.7-c0.2-n2.dat" using 1:(abs($10)) with lines lw 2 title "n=2 imprecise", \
"r12-cls-q0.7-c0.2-n1.dat" using 1:(abs($10)) with lines lw 2 title "n=1 imprecise"
#################################################