change parent of axes Snapshot figure of Simulation Data Inspector to tiledlayout
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!