function draw_bin(binVec, gap)
xx = binVec(2:2:size(binVec,2));
plot([0 length(xx)+1],[0 0]);
hold on;
d_yy=[0 1 1 0];
d_xx=[-0.5*gap -.5*gap 0.5*gap 0.5*gap];
for i=1:length(xx),
 if xx(i) > 0.5,
  plot([i i], [0 0.02]);
  plot(d_xx+i,d_yy);
 else
  plot([i i], [0 0.02]);
  plot(d_xx+i, d_yy,':');
 end
end;
axis('off');

