making a figure always on top

53 次查看(过去 30 天)
how could a figure be always on top of other windows?

采纳的回答

Wayne King
Wayne King 2011-9-17
If you have a handle to a figure.
h1 = figure;
plot(randn(100,1));
And after you create subsequent plots, you call:
figure(h1)
That will raise the figure above all others.
Wayne
  2 个评论
mohammad
mohammad 2011-9-18
but it's needed when i use same plot command, it plots in the same figure window and not another figure window

请先登录,再进行评论。

更多回答(2 个)

Adam Danz
Adam Danz 2021-5-10
Update (10 years later)
Starting in Matlab R2021a you can set figures created by uifigure to always be on top of other windows.
uifig = uifigure('WindowStyle','alwaysontop');
or
uifig = uifigure();
uifig.WindowStyle = 'alwaysontop';
Unlike the modal option, other windows are still accessible.
For more info,

Igor
Igor 2013-6-18
If you need to make a figure ALWAYS on top, try this.

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by