GUI - axes visibility
Mostra commenti meno recenti
Hello, firstly,sorry for my bad english.. So,i have a problem with my GUI. In my image processing GUI there are two axes and three buttons. In the first axes is the original image and in the second the segmented. The thing that i want to do ,is,when i click the third button,all the buttons and the first axes(the original image) will disappear. So,i found this code for the buttons and its ok: for examle, set(handles.OpenImage, 'Visible','off');(OpenImage is the Tag for the first button). But how i can do the same thing for the axes? I tried this code for the axes and it doesn't working.. Thanks a lot in advance.
1 Commento
Jan
il 20 Ott 2011
Please post a copy of what you have tried and explain what "it doesn#t work" means. If you get an error message, post it completly.
Risposte (1)
Fangjun Jiang
il 20 Ott 2011
0 voti
It looks like that when you show an image on the axes, the axes is automatically set to be invisible. You will need to find the handle of the image object and then set it to be invisible.
For example, in your push button callback, you can do this, assume the tag of the axes is a
h=findobj(handles.a,'type','image'); set(h,'visible','off')
You can pause there, try set(handles.a,'visible','on')
If you want to delete the image, use delete(h);
Categorie
Scopri di più su Data Exploration in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!