Adding existing axes objects to a new tiledlayout
Show older comments
I have a cell-array of axes-objects which all have different parents. Now I would like to transfer all those objects to the same tiledlayout. I tried changing their parents one-by-one, but then they all appear in the same tile:
f = figure();
t = tiledlayout(3,3);
for i = 1:9
set(arrayOfAxes{i}, 'Parent', t);
end
I also tried using nexttile() in the for loop, but this didn't help. Is there a way to specify which tile an axes-object belongs to within tiledlayout?
Appreciate you help very much!
Accepted Answer
More Answers (1)
Categories
Find more on Axes Appearance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!