How can I change the size of the axes for individual tiles within 'tiledlayout'?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 24 Apr. 2021
Beantwortet: MathWorks Support Team
am 24 Apr. 2021
The 'tiledlayout' environment allows for automatically aligning the indivudual tiles in the layout.
How can I change the size of the axes for individual tiles within 'tiledlayout'?
Akzeptierte Antwort
MathWorks Support Team
am 24 Apr. 2021
Below it is shown a workflow where the size of the axes for individual tiles within 'tiledlayout' is manually adjusted.
% Allocates a layout which will be 6 tiles high and 1 tile wide.
t = tiledlayout(6,1);
% Specifies this axes to take up 3 rows, 1 column.
ax1 = nexttile([3 1]);
ax1.Title.String = 'This spans 1/2 the height of the figure';
ax2 = nexttile([2 1]);
ax2.Title.String = 'This spans 1/3 the height of the figure';
ax3 = nexttile([1 1]);
ax3.Title.String = 'This spans 1/6 the height of the figure';
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!