Distribute the subplots to two different figures

조회 수: 45 (최근 30일)
as hz
as hz 2012년 9월 25일
답변: Akshay Kumar 2018년 8월 8일
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일
% 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
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일
Hey, you can use this code to do that Click here

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by