set yrange [0:109] set xrange [-1:16] set grid x set grid y set xlabel "Ret pos i*4+j" set ylabel "% of chips with code 94 (qdamin=6)" set boxwidth 0.6 plot "j06_qda_ret" using ($1*4+$2):5 title "jun2006 wafer 71" with boxes, "j06_qda_ret" using ($1*4+$2):4 title "Rel.# of chips" with histeps lw 4 pause -1 set terminal png set output "j06_qda_rm.png" replot