making a figure always on top

조회 수: 156 (최근 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 CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by