Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Two axes in GUI

1 visualizzazione (ultimi 30 giorni)
zeyneb khalili
zeyneb khalili il 3 Giu 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I have GUI with two axes. Axes1 is used to update plots. Axes 2 is just to show an image. The first one is called by pushbutton callback by this command:
set(projetFEM,'currentaxes',handles.axes1);
In the second one, I call imshow in its createFcn. The problem is that image disappear after exiting GUI. I need your help. Thanks in advance.
  4 Commenti
Adam
Adam il 3 Giu 2019
You mean it doesn't plot the second time?
How are you calling imshow?
You should always give plotting instructions an explicit axes handle to work on to avoid unexpected issues that take time to get to the bottom of.
Geoff Hayes
Geoff Hayes il 3 Giu 2019
zeyneb - why should the image re-appear if you open the GUI a second time? Wouldn't you have to reload it or are you expecting the GUI state to be maintained? (If so, then you will need to program your GUI to do this.)

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by