Axes don't move along with grandparent uipanel
이전 댓글 표시
The following code causes in error whereby, after an initial change in position of an axes parent uipanel's parent, further position changes do not bring the set of axes along with it.
f=figure('units','normalized','position',[.1 .1 .8 .8]);
u=uipanel('units','normalized','position',[.1 .1 .8 .8],'parent',f);
u2=uipanel('units','normalized','position',[.1 .1 .8 .8],'parent',u);
axes('units','normalized','position',[.2 .2 .6 .6],'parent',u2);
pause(0.5);
set(u,'position',[.15 .1 .8 .8]); drawnow; pause(0.5);
set(u,'position',[.2 .1 .8 .8]); drawnow; pause(0.5);
set(u,'position',[.25 .1 .8 .8]); drawnow; pause(0.5);
set(u,'position',[.3 .1 .8 .8]); drawnow;
All of the children of uipanel u should move in tandem as u's position changes and remain centered. However, the axes remain statically located on the screen.
Does a workaround exist for this bug?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!