Axes doesn't move with parental uipanel ??

1 Ansicht (letzte 30 Tage)
Song
Song am 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] )

Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by