for i=1:8
  kmplot(i);
  f=['title ', 39, 'best #', sprintf('%d',i), ', cost = ', sprintf('%g',w_min(i)), 39];
  eval(f);
  f=sprintf('print %d.ps',i);
  eval(f);
end
