Axes doesn't move with parental uipanel ??
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Object Properties in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!