Stacking order of figures

18 次查看(过去 30 天)
the cyclist
the cyclist 2014-11-18
评论: the cyclist ,2014-11-19
Suppose I create three figures
for ni = 1:3
figure
plot(rand(7))
drawnow
end
These will be drawn with Figure 1 on the bottom, Figure 2 in the middle, and Figure 3 on top, remaining viewable at the end.
How can change the stacking order? Prior to 2014b, one could sort the Children of the root object numerically, but I can't figure out how to do it in 2014b.

回答(1 个)

Doug Hull
Doug Hull 2014-11-18
Maybe I am misunderstanding the question:
close all
for ni = 1:3
figure
plot(rand(7))
drawnow
end
uistack(2,'top')
uistack(1,'top')
  3 个评论
the cyclist
the cyclist 2014-11-19
Yes, that seems to work. Thanks!

请先登录,再进行评论。

类别

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by