function draw_bin_Order(binVec, gap, binOrd)
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,
  if binOrd(i) < 0.5,
    disp('Error for selected bin');
  end;
  plot([i i], [0 0.02]);
  p = plot(d_xx+i,d_yy*((35-binOrd(i))*0.9/34+.1));
 else
  if binOrd(i) > 0.5,
    disp('Error for unselected bin');
  end;
  plot([i i], [0 0.02]);
%  plot(d_xx+i, d_yy,':');
 end
end;
axis('off');
pp=get(p,'Parent');
set(pp,'YLim',[0 1]);
