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 codes 0,39,96,97,98,99" set boxwidth 0.6 plot "pre_rm2v" using ($1*4+$2):5 title "preproduction wafers 2,3,10..17, 5721 chips" with boxes, "pre_rm2v" using ($1*4+$2):4 title "Rel.# of chips" with histeps lw 4 pause -1 set terminal png set output "pre_rm2v.png" replot