NO_ERROR = true;
close
hax = axes('xlim', [-2 2], 'ylim', [-2 2])
display('hax xlim     = ');display(get(hax, 'xlim'));
display('hax xlimmode = ');display(get(hax, 'xlimmode'));
grid on
xlabel('X'); ylabel('Y');
hg = hggroup(hax)
display('hg xlim = ');display(get(hg, 'xlim'));
if NO_ERROR
  display('paused...');pause
  hx = line([0;1], [0;0], 'color', 'r', 'parent', hg)
  display('hg xlim = ');display(get(hg, 'xlim'));
else
  hx = line([0;1], [0;0], 'color', 'r')
  display('paused...');pause
  set(hx, 'parent', hg);
  display('hggroup xlim = ');display(get(hg, 'xlim'));
endif
display('paused...');pause
close
