How to make subplots in GUI that retains the plot?

In my GUI program, I want to make a button that creates 4 subplots; each of the subplots allows the users' input data to be retained (retain the plot). So the user can look at 4 plot at a time and compare them.
I can create the subplots but everytime the data is not retained.

Respuestas (3)

Sean de Wolski
Sean de Wolski el 11 de Oct. de 2011
Are you looking for:
hold on
?
Edit per comment
figure;
for ii = 1:4
subplot(2,2,ii);
peaks;
end

1 comentario

Bastion
Bastion el 12 de Oct. de 2011
No, but I tried that but it didn't work
I just want to have 4 subplots that can show 4 different plots at the same time

Iniciar sesión para comentar.

karan
karan el 24 de Nov. de 2011

0 votos

Hey have you got an answer for this because have a same problem and seeking for a solution
please let me know... @ karan_vibgyor@yahoo.com
Thank you

3 comentarios

Sean's solution in his "Edit per comment" should be good.
I don't think we ever understood what was being asked about "the data is not retained".
karan
karan el 24 de Nov. de 2011
so my problem is a little different ....
nothing related with retaining the content
but the subplot is not 'Contained' within the defined 'boundaries' of the defined axes widget
is there a way i can upload images for a better understanding of my problem...
Please do not post to substantially different questions.
If I recall correctly, you already posted your question about the boundaries. You could post links to images there.
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers

Iniciar sesión para comentar.

karan
karan el 24 de Nov. de 2011

0 votos

so my problem is a little different .... nothing related with retaining the content but the subplot is not 'Contained' within the defined 'boundaries' of the defined axes widget is there a way i can upload images for a better understanding of my problem...

Productos

Etiquetas

Preguntada:

el 11 de Oct. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by