Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

making a figure always on top

Asked by mohammad

mohammad (view profile)

on 17 Sep 2011

how could a figure be always on top of other windows?

0 Comments

mohammad

mohammad (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Wayne King

Wayne King (view profile)

on 17 Sep 2011
Accepted answer

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 Comments

mohammad

mohammad (view profile)

on 18 Sep 2011

Thanks

mohammad

mohammad (view profile)

on 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

Wayne King

Wayne King (view profile)

Answer by Igor

Igor (view profile)

on 18 Jun 2013

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

1 Comment

mohammad

mohammad (view profile)

on 8 Aug 2013

Thanks, so nice!!!

Igor

Igor (view profile)

Contact us