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.

Antworten (2)

Teja Muppirala
Teja Muppirala am 26 Dez. 2012

1 Stimme

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 Kommentar

Teja Muppirala
Teja Muppirala am 26 Dez. 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.

Melden Sie sich an, um zu kommentieren.

Image Analyst
Image Analyst am 26 Dez. 2012

0 Stimmen

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 Kommentar

Walter Roberson
Walter Roberson am 26 Dez. 2012
Or is the difficulty that one you add a uicontrol() to a figure, a menubar is usually automatically removed ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Exploration finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 26 Dez. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by