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.

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by