Matlab GUI problem with multiple panels

조회 수: 2 (최근 30일)
Raldi
Raldi 2013년 1월 7일
Hello,
I have created this big GUI(not using guide) that has 3 main panels, each one of them with different axes and buttons. Using 3 buttons you can switch between the panels (the one you want becomes visible and the other two invisible). But i have a problem when plotting some data on one of the panels i noticed that this axes object, belonging to another panel is being affected too (its size changes). I use
Tagx = findobj('Tag','Table');
to find an object. This is the axes affected
hAxesB = axes('Parent', InteractivePanel,...
'Units', 'pixels',...
'Position', [4 4 410 740],...
'Tag','AxesInt',...
'Visible','on',...
'xtick',[],'ytick',[]);
set(hAxesB,'ButtonDownFcn',{@mousePos,hAxes})
set(hAxesB, 'Units', 'centimeters');
Has anyone any idea on why is this happening?

채택된 답변

Image Analyst
Image Analyst 2013년 1월 7일
Why are both hAxes and hAxesB in this line:
set(hAxesB,'ButtonDownFcn',{@mousePos,hAxes})
  댓글 수: 1
Raldi
Raldi 2013년 1월 7일
It seems that i forgot to change its name, guess i was too tired last night to notice. Thanks for the answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by