function colorbarproblem
  f = figure;
  ax = axes(f,'units','pixels','position',[50 50 300 300]);
  h = colorbar;
  disp(['colorbar position = ',num2str(get(h,'position'))])
  disp(['colorbar units = ',get(h,'units')])
end
