필터 지우기
필터 지우기

set TileSpacing in reopened figure

조회 수: 4 (최근 30일)
abu
abu 2021년 8월 25일
댓글: abu 2021년 8월 26일
Hello,
I have a bunch of old .fig without the sourcecode at hand :-( . They were created using
t = tiledlayout(3,1);
t.TileSpacing = 'none';
Now when I reopen the figures I can manually change the TileSpacing in the Property Inspector to 'tight' , however I was not able to find a command to change the property by command line / code. Any suggestion is greatly appreciated!
Thanks in advance,
Andi

채택된 답변

Chunru
Chunru 2021년 8월 26일
편집: Chunru 2021년 8월 26일
t = tiledlayout(3,1);
t.TileSpacing = 'none';
nexttile;
plot(rand(10,1));
nexttile;
plot(rand(10,1));
nexttile;
plot(rand(10,1));
savefig(gcf, 'output.fig');
figure;
open('output.fig')
h=findobj(gcf, 'Type', 'tiledlayout');
h.TileSpacing = 'tight';
  댓글 수: 1
abu
abu 2021년 8월 26일
Works like charme, thanks for the support :-)
I was fiddling with findobj before, however not looking for tiledlayout, but for TileSpacing or TiledChartLayout. It seems I am not clear about the differences between objects, properties, classes etc. Do you have a resource at hand that could help me better understanding those basics?
Thank you again!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by