Increase column width of a Tiltedlayout

10 visualizaciones (últimos 30 días)
Théo
Théo el 21 de Abr. de 2023
Comentada: Théo el 21 de Abr. de 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 !

Respuesta aceptada

Kevin Holly
Kevin Holly el 21 de Abr. de 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')
  1 comentario
Théo
Théo el 21 de Abr. de 2023
Thank you so much for this quick answer !

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by