making a figure always on top

153 ビュー (過去 30 日間)
mohammad
mohammad 2011 年 9 月 17 日
回答済み: Adam Danz 2021 年 5 月 10 日
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 日
Thanks
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.
  1 件のコメント
mohammad
mohammad 2013 年 8 月 8 日
Thanks, so nice!!!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by