Axes doesn't move with parental uipanel ??

2 次查看(过去 30 天)
I just met something what I don't understand and need help. My Matlab version is 2011b. In my application it seems the axes doesn't move with its uipanel as parent, e.g. with following test code.
Does anyone has an idea?
f = figure;
h1 = uipanel('parent', f);
h2 = uipanel('parent', h1);
h3 = uipanel('parent', h2);
axes('parent', h3, 'unit', 'normalized', 'position', [0 0 1 1]);
set(h1, 'unit', 'pixel');
set(h1, 'position', [10 10 200 300] )
set(h1, 'position', [40 50 200 300] )
f = figure;
h1 = uipanel('parent', f);
h2 = uipanel('parent', h1);
h3 = uipanel('parent', h2);
axes('parent', h3, 'unit', 'normalized', 'position', [0 0 1 1]);
set(h1, 'unit', 'pixel');
set(h1, 'position', [-100 10 200 300] )
pause(0.1)
set(h1, 'position', [40 50 200 300] )

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Properties 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by