change parent of axes Snapshot figure of Simulation Data Inspector to tiledlayout
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I must prepare my results for publication. I use Simulink and results of modeliing out Simulation Data Inspector (SDI).
SDI can't change font and size of font. SDI can't adopt for real size of paper. SDI can't replace float delimiter from dot to comma.
So I decided to use snapshot of SDI to figure.
I can out my graph results with old minimal white space technology and above my demands.
I try to use tiledlayout but when I change axe's property 'parent' from SDI's snapshot figure to tiledlayout of new figure
hFig_org = gcf;
hChs = hFig_org.Children;
Qobj = length(hChs);
Qaxes = 0;
hFig_new = figure;
hTL_new = tiledlayout(hFig_new,4,1);
for k=Qobj:-1:1
hAx = hChs(k);
if (isgraphics(hAx,'axes'))
hAx.Parent = hTL_new;
Qaxes = Qaxes + 1;
hAx.Layout.Tile = Qaxes;
end
end
Matlab out error:
Warning: An error occurred while drawing the scene: Cookie 72057594037928945 does not refer to a node
in the scene tree > In defaulterrorcallback (line 12)
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Specifying Target for Graphics Output 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!