Tiled layout with a nested graph spanning multiple tiles
3 次查看(过去 30 天)
显示 更早的评论
I would like to nest/superimpose a plot on another, which is part of a tiledlayout and spans multiple tiles. The following works fine:
figure
tiledlayout(1, 6)
nexttile([1 5])
plot(1:10)
nexttile(6)
plot(11:20)
However, the following does not and it results in two figures:
figure
tiledlayout(1, 6)
nexttile([1 5])
plot(1:10)
axes("position", [0.5 0.5 0.2 0.2])
plot(21:30)
nexttile(6)
plot(11:20)
0 个评论
采纳的回答
Cris LaPierre
2025-1-31
Perhaps it's your 'order of operations'. What if you add the floating axes last?
figure
tiledlayout(1, 6)
nexttile([1 5])
plot(1:10)
nexttile(6)
plot(11:20)
axes("position", [0.5 0.5 0.2 0.2])
plot(21:30)
2 个评论
Adam Danz
2025-1-31
Pro tip 😎 nexttile('east')
figure
tiledlayout(1, 1)
nexttile()
plot(1:10)
nexttile('east')
plot(11:20)
axes("position", [0.5 0.5 0.2 0.2])
plot(21:30)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axes Appearance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!