How do I reorder the visual stacking order of objects in MATLAB 7.7 (R2008b)?

48 Ansichten (letzte 30 Tage)
I am trying to change the order of objects in the handle graphics hierarchy. I cannot find a function which does this.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
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.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Produkte


Version

R2008b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by