フィルターのクリア

In 'tiledlayout' command, I want no spacing in x-direction only how to get that?

5 ビュー (過去 30 日間)
Avijit Paul
Avijit Paul 2023 年 5 月 13 日
回答済み: Star Strider 2023 年 5 月 13 日
% I want No Spacing in X- Dierction only and want some gaps in y drection to to write details.
% How to do that
t= tiledlayout(5,5,'TileSpacing','none');

採用された回答

Star Strider
Star Strider 2023 年 5 月 13 日
You can do it with subplot axes, however not with tiledlayout axes.
To illustrate —
figure
tiledlayout(2,2)
htl1 = nexttile;
plot(rand(5))
htl2 = nexttile;
plot(rand(5))
htl2.Position = [sum(htl1.Position([1 3])) htl2.Position(2:4)];
Warning: Unable to set 'Position', 'InnerPosition', 'OuterPosition', or 'PositionConstraint' for objects in a TiledChartLayout
htl3 = nexttile;
plot(rand(5))
htl4 = nexttile;
plot(rand(5))
htl4.Position = [sum(htl3.Position([1 3])) htl4.Position(2:4)];
Warning: Unable to set 'Position', 'InnerPosition', 'OuterPosition', or 'PositionConstraint' for objects in a TiledChartLayout
figure
hsp1 = subplot(2,2,1);
plot(rand(5))
hsp2 = subplot(2,2,2);
plot(rand(5))
hsp2.Position = [sum(hsp1.Position([1 3])) hsp2.Position(2:4)];
hsp3 = subplot(2,2,3);
plot(rand(5))
hsp4 = subplot(2,2,4);
plot(rand(5))
hsp4.Position = [sum(hsp3.Position([1 3])) hsp4.Position(2:4)];
.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by