MATLAB GUI RESIZE PLOT

3 次查看(过去 30 天)
Paolo Rossi
Paolo Rossi 2011-12-29
Hi, I have a main program thar start when i push a "start" button in my gui, the main program include some subplot, how can i fit these subplot in a axes in the gui?
the problem is that when the program start the subplot are insert in the gui, but the dimension isn't the dimension of the axes that i have create in the gui
I wrote a piace of mail program that start when click on button start
subplot(1,3,1,handles.axes1)
waterfall(phid,1:NLINEE,ZRAV1_1)
xlabel('Azimuth')
ylabel('Tempo')
zlabel('Beamforming')
set(findobj('Type','patch'),'linewidth',12)
axis ([-200 200 0 k1])
drawnow

回答(1 个)

Paul
Paul 2012-2-7
If you type help on the MATLAB prompt you will see that "if the CurrentAxes is nested in a uipanel the panel is used as the parent for the subplot instead of the current figure." You may want to consider manually creating different axes in GUIDE. That way you will maintin more control over the axes.

产品

Community Treasure Hunt

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

Start Hunting!

Translated by