MATLAB: How to reorder the visual stacking order of objects in MATLAB 7.7 (R2008b)

MATLABobjectsreorderuistack

I am trying to change the order of objects in the handle graphics hierarchy. I cannot find a function which does this.

Best Answer

To change the visual stacking order of objects in a figure, use the UISTACK function. You can move the objects up or down in the hierarchy.
h=get(gca,'Children');
uistack(h(2),'up',1);
The above code moves the second object one place up in the hierarchy.