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.

Réponses (2)

Teja Muppirala
Teja Muppirala le 26 Déc 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 commentaire

Teja Muppirala
Teja Muppirala le 26 Déc 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.

Connectez-vous pour commenter.

Image Analyst
Image Analyst le 26 Déc 2012

0 votes

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 commentaire

Walter Roberson
Walter Roberson le 26 Déc 2012
Or is the difficulty that one you add a uicontrol() to a figure, a menubar is usually automatically removed ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Exploration dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by