Increase column width of a Tiltedlayout

10 visualizzazioni (ultimi 30 giorni)
Théo
Théo il 21 Apr 2023
Commentato: Théo il 21 Apr 2023
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 !

Risposta accettata

Kevin Holly
Kevin Holly il 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')

Più risposte (0)

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by