필터 지우기
필터 지우기

Set current figure without making it visible

조회 수: 107 (최근 30일)
John F
John F 2012년 7월 11일
댓글: raym 2017년 11월 20일
Hi all,
I'd like to make a figure "the current figure" by using
figure(myPicture)
HOWEVER, I don't want myPicture to become visible.
The figure(myPicture) command makes myPicture visible by definition. Is there any other command that will simply make myPicture the current figure while keeping the visibility set to "off"?
Thanks!
JF
  댓글 수: 2
Thomas
Thomas 2012년 7월 11일
You have created another question about the same topic without replying back to the posters who posted answers in the previous thread.
Please donot make duplicate postings.
Duplicate posting at:
John F
John F 2012년 7월 11일
Sorry about that...new to this

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

채택된 답변

Jan
Jan 2012년 7월 11일
set(0, 'CurrentFigure', figureHandle)
  댓글 수: 1
raym
raym 2017년 11월 20일
It works fine and solved my problems since I have huge amount of lines to plot on one figure. Thanks for your powerful answer!

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

추가 답변 (2개)

John Petersen
John Petersen 2012년 7월 11일
Do you want to manipulate the figure 'MyPicture'? Is that why you want it 'current'? If so, you don't have to make it current. You just have to use the figure handle in the commands you're using. For example,
h=figure;
creates the figure and handle for that figure;
plot(h, x,y)
plots x,y on the figure with handle 'h'
title(h,'This is MyPicture')
adds a title to your figure.

Kye Taylor
Kye Taylor 2012년 7월 11일
Perhaps
figure(myPicture), set(myPicture,'visible','off')
then when you want
set(myPicture,'visible','on')

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by