using zoom in and zoom out in gui Axes

hi i'm user of the Matlab 2011. the question is how to show or use the zoom in and zoom out buttons on GUI axes. when I use the instruction 'figure' I can see the zoom in, zoom out and data cursor. please let me.

Answers (2)

If you make a GUI in GUIDE, by default the toolbar and menubar are hidden. You can make them visible by setting the 'MenuBar' and 'Toolbar' properties of your GUI figure:
set(h,'toolbar','figure');
set(h,'menubar','figure');
where h is the handle to your figure.

1 Comment

The same thing also happens with the toolbar if you do it manually using UICONTROLs, but you can turn it back on the same way using the above commands.

Sign in to comment.

Not sure what you're asking. Do you want to zoom from the figure toolbar? Or do you want to zoom your image or graph in an axes with the zoom() command from your m-file code?

1 Comment

Or is the difficulty that one you add a uicontrol() to a figure, a menubar is usually automatically removed ?

Sign in to comment.

Categories

Tags

Asked:

on 26 Dec 2012

Community Treasure Hunt

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

Start Hunting!