Increase column width of a Tiltedlayout

7 views (last 30 days)
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 !

Accepted Answer

Kevin Holly
Kevin Holly on 21 Apr 2023
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')

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!