Axes doesn't move with parental uipanel ??
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Properties dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!