Increase column width of a Tiltedlayout
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1362938/image.png)
I want the first column of six graphs with a bigger width than the column of 2 graphs.
Thanks for considering !
0 comentarios
Respuesta aceptada
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')
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Performance en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!