making a figure always on top

102 vues (au cours des 30 derniers jours)
mohammad
mohammad le 17 Sep 2011
how could a figure be always on top of other windows?

Réponse acceptée

Wayne King
Wayne King le 17 Sep 2011
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 commentaires
mohammad
mohammad le 18 Sep 2011
Thanks
mohammad
mohammad le 18 Sep 2011
but it's needed when i use same plot command, it plots in the same figure window and not another figure window

Connectez-vous pour commenter.

Plus de réponses (2)

Adam Danz
Adam Danz le 10 Mai 2021
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 le 18 Juin 2013
If you need to make a figure ALWAYS on top, try this.
  1 commentaire
mohammad
mohammad le 8 Août 2013
Thanks, so nice!!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by