Axes doesn't move with parental uipanel ??

1 view (last 30 days)
Song
Song on 8 Jun 2015
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] )

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!