Increase column width of a Tiltedlayout

14 次查看(过去 30 天)
Hello everyone, I am looking for increasing the width of a tiltedlayout, so the first column's width is bigger than the second one.
There is my code :
F = figure('Renderer', 'painters', 'Position', [65 200 1250 680])
t = tiledlayout(6,3,'TileSpacing',"compact");
[X,Y,Z] = peaks;
% Tile 1
nexttile
plot([1 2 3 4],[1 2 3 4],'-o')
% Span across two rows and columns
nexttile([3 2])
plot([1 2 3 4],[1 2 3 4])
% Last tile
nexttile
y = plot([1 2 3 4],[1 2 3 4],'-o')
nexttile
plot([1 2 3 4],[1 2 3 4])
% Tile 1
nexttile
plot([1 2 3 4],[1 2 3 4],'-o')
% Span across two rows and columns
nexttile([3 2])
plot([1 2 3 4],[1 2 3 4],'-o')
% Last tile
nexttile
plot([1 2 3 4],[1 2 3 4],'-o')
nexttile
plot([1 2 3 4],[1 2 3 4],'-o')
and the figure :
I want the first column of six graphs with a bigger width than the column of 2 graphs.
Thanks for considering !

采纳的回答

Kevin Holly
Kevin Holly 2023-4-21
F = figure('Renderer', 'painters', 'Position', [65 200 1250 680]);
t = tiledlayout(6,3,'TileSpacing',"compact");
[X,Y,Z] = peaks;
% Tile 1
nexttile([1 2])
plot([1 2 3 4],[1 2 3 4],'-o')
% Span across two rows and columns
nexttile([3 1])
plot([1 2 3 4],[1 2 3 4])
% Last tile
nexttile([1 2])
y = plot([1 2 3 4],[1 2 3 4],'-o');
nexttile([1 2])
plot([1 2 3 4],[1 2 3 4])
% Tile 1
nexttile([1 2])
plot([1 2 3 4],[1 2 3 4],'-o')
% Span across two rows and columns
nexttile([3 1])
plot([1 2 3 4],[1 2 3 4],'-o')
% Last tile
nexttile([1 2])
plot([1 2 3 4],[1 2 3 4],'-o')
nexttile([1 2])
plot([1 2 3 4],[1 2 3 4],'-o')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by