making a figure always on top

 Respuesta aceptada

Wayne King
Wayne King el 17 de Sept. de 2011

2 votos

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 comentarios

mohammad
mohammad el 18 de Sept. de 2011
Thanks
mohammad
mohammad el 18 de Sept. de 2011
but it's needed when i use same plot command, it plots in the same figure window and not another figure window

Iniciar sesión para comentar.

Más respuestas (2)

Adam Danz
Adam Danz el 10 de Mayo de 2021

3 votos

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 el 18 de Jun. de 2013

2 votos

If you need to make a figure ALWAYS on top, try this.

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de Sept. de 2011

Respondida:

el 10 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by