Center alignment for tiledlayout

26 Ansichten (letzte 30 Tage)
hmhuang
hmhuang am 13 Jan. 2022
Beantwortet: G A am 13 Jan. 2022
Is it possible to align all the tiles in the tiledlayout to the center, such as the attached figure?

Akzeptierte Antwort

G A
G A am 13 Jan. 2022
x = -2*pi:0.1:2*pi;
y = sin(x);
t = tiledlayout(3,6);
nexttile([1,2])
plot(x,y)
nexttile([1,2])
plot(x,y)
nexttile([1,2])
plot(x,y)
nexttile([1,1])
axis off
nexttile([1,2])
plot(x,y)
nexttile([1,2])
plot(x,y)
nexttile([1,1])
axis off
nexttile([1,1])
axis off
nexttile([1,2])
plot(x,y)
nexttile([1,2])
plot(x,y)
nexttile([1,1])
axis off
xlabel(t,'xlabel')
ylabel(t,'ylabel')

Weitere Antworten (0)

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!

Translated by