using zoom in and zoom out in gui Axes
6 views (last 30 days)
Show older comments
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.
0 Comments
Answers (2)
Teja Muppirala
on 26 Dec 2012
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
Teja Muppirala
on 26 Dec 2012
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.
Image Analyst
on 26 Dec 2012
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
Walter Roberson
on 26 Dec 2012
Or is the difficulty that one you add a uicontrol() to a figure, a menubar is usually automatically removed ?
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!