Wednesday, December 14, 2011

Plot funny conditional stuff in gnuplot

plot "acc_len_acc_old_new11.txt" using 2:4:(+0):(-($4-$5)):((($2<=1)||($4<=1)||($4==$5))?(1/0):(($4 > $5) ? (rgb("0","255","0")): (rgb("255","0","0")))) notitle with vectors lc rgb variable,"acc_len_acc_old_new11.txt" using 2:5:(+0):(-($4-$5)):(($4!=$5)?(1/0):(($4 > $5) ? (rgb("0","255","255")):(rgb("255","0","255")))) notitle with vectors lc rgb variable, "acc_len_acc_old_new11.txt" using 2:(($4==$5 ? 5 : 1/0)) notitle with points pt 13 lc 13

Wednesday, December 7, 2011

PDFs to text to make them searchable on commandline

linse@elektrobier:~/Documents/cloned/diss/paper$ for f in *.pdf; do pdftotext $f; done