How can I put existing figures in different subplots in another figure in MATLAB 6.5 (R13)?
Mostra commenti meno recenti
I want to make several plots, each in their own figure. I then want to create a final figure which contains subplots which have the contents of the original figures.
Risposta accettata
Più risposte (1)
Eric Sargent
il 9 Dic 2020
Starting in R2019b, you can use tiledlayout to manage several axes. You can reparent each of your axes into a layout, and set the tile number of each axes as appropriate.
% Get a list of all of the open figures
figlist=get(groot,'Children');
newfig=figure;
tcl=tiledlayout(newfig,'flow')
for i = 1:numel(figlist)
figure(figlist(i));
ax=gca;
ax.Parent=tcl;
ax.Layout.Tile=i;
end
3 Commenti
KAE
il 9 Dic 2020
Thanks!
Eric Sargent
il 19 Gen 2021
What do you mean by "keep the names"? What are you looking to do?
Eric Sargent
il 1 Feb 2021
Categorie
Scopri di più su Subplots in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!