Distribute the subplots to two different figures

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

回答 (2 件)

Matt Fig
Matt Fig 2012 年 9 月 25 日
編集済み: Matt Fig 2012 年 9 月 25 日

1 投票

% 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 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 25 日
編集済み: Azzi Abdelmalek 2012 年 9 月 25 日
It's like children of figure1 were adopted by figure2 and figure 3
Matt Fig
Matt Fig 2012 年 9 月 25 日
Haha, Azzi, Right!
Image Analyst
Image Analyst 2012 年 9 月 25 日
Or they kidnapped them.
Matt Fig
Matt Fig 2012 年 9 月 25 日
編集済み: Matt Fig 2012 年 9 月 25 日
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
Akshay Kumar 2018 年 8 月 8 日

0 投票

Hey, you can use this code to do that Click here

タグ

質問済み:

2012 年 9 月 25 日

回答済み:

2018 年 8 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by