Axes WIndows in Guide Disappearing

I have four axes windows in the GUI GUIDE displaying plots.
I have designated the data to be plotted for axes 1, axes 2, axes 3, and axes 4.
However when I switch between them, the axes windows disappear until I re-click
on the axes blank window again. Then it reappears.
Is there a way for all the windows to be fixed while switching between
axes windows?
Thanks,
Amanda

 Réponse acceptée

Matt Fig
Matt Fig le 11 Sep 2012

0 votes

What do you mean by 'switching between' the axes? Just to be clear, in MATLAB a window is called a figure. So do you mean you have 4 open figures, besides your GUI, or do you mean that your GUI has for axes on it (only one figure, the GUI, is open)?

5 commentaires

Amanda
Amanda le 11 Sep 2012
Modifié(e) : Amanda le 11 Sep 2012
I have a GUI with 4 open figures. When I use a slider for my data on one of the figures the other figure disappears. So I'm trying to prevent the other axes disappearing for a cleaner GUI.
Matt Fig
Matt Fig le 11 Sep 2012
So show the callback for the slider...
Amanda
Amanda le 11 Sep 2012
What do you mean the "callback for the slider?" I have 4 figures with sliders underneath. But when I go to figure #2 then figure 1,3,4 disappears from the GUI momentarily until I click the empty figure.
Jan
Jan le 11 Sep 2012
@Amanda: You told above, that you have 1 figure, which contains 4 axes. Now you are talking about 4 figures, which disappear from a GUI. Please use the correct Matlab terms: A window is called "figure", usually "GUI" means such a figure.
When "you use a slider", any function is called to use the slider value to update the figure. This function is called "Callback" and inside the callback of the slider, there is the code which let the other axes disappear. Without seeing the code, there is no chance to improve it.
Amanda
Amanda le 11 Sep 2012
I found the problem. I need to cla(handles.axes1,'reset') for each axes and not cla;

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by