Distribute the subplots to two different figures
Ältere Kommentare anzeigen
Hi,
I have several graphs which I plotted using subplot. How can I distribute the subplots to two different output figures (like two pages)?
Thanks
Antworten (2)
% First the subplots
figure
s(1) = subplot(1,2,1);
plot(1:10)
s(2) = subplot(1,2,2);
ezplot('x.^2')
% Now move them.
figure
set(s(1),'parent',gcf,'pos',[.1 .1 .8 .8])
figure
set(s(2),'parent',gcf,'pos',[.1 .1 .8 .8])
4 Kommentare
Azzi Abdelmalek
am 25 Sep. 2012
Bearbeitet: Azzi Abdelmalek
am 25 Sep. 2012
It's like children of figure1 were adopted by figure2 and figure 3
Matt Fig
am 25 Sep. 2012
Haha, Azzi, Right!
Image Analyst
am 25 Sep. 2012
Or they kidnapped them.
Haha, either way figure 1 is left childless. I suppose one could be kinder and not take them both:
figure
s(1) = subplot(1,2,1);
plot(1:10)
s(2) = subplot(1,2,2);
ezplot('x.^2')
% Now move one.
figure
set(s(1),'parent',gcf,'pos',[.1 .1 .8 .8])
set(s(2),'pos',[.1 .1 .8 .8])
Akshay Kumar
am 8 Aug. 2018
0 Stimmen
Kategorien
Mehr zu Subplots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!