open/create a figure behind another

Hi, just as the title says, would it be possible? I know I can create/open a figure then focus/select the main figure, but thats not what I want to do.
Thank you

 채택된 답변

Sean de Wolski
Sean de Wolski 2013년 6월 19일

0 개 추천

%First figure
figure(1);
set(1,'units','normalized','position',[0.1 0.2 0.6 0.4]);
plot(rand(1,10));
%Open the seocnd figure;
figure(2);
set(2,'units',get(1,'units'),'position',get(1,'position'));
surf(peaks);
%Give focus back to the first
figure(1);

댓글 수: 4

Vincent I
Vincent I 2013년 6월 19일
Yes, I am aware of this method. However what i'm looking for is creating the second figure behind the first one. Not creating the secnd figure in from of the first one then focus on the first figure.
Sean de Wolski
Sean de Wolski 2013년 6월 19일
Why?
If you have to, make the second one invisible, give focus to the first, then turn the visibility of the secone one on.
Vincent I
Vincent I 2013년 6월 19일
ok that might work... I think I can do that, I'll give it a try.
ok it worked. Thank you
figure2('Visible','off')
figure(figure1)
figure2('Visible','on')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by