Filter löschen
Filter löschen

Set current figure without making it visible

111 Ansichten (letzte 30 Tage)
John F
John F am 11 Jul. 2012
Kommentiert: raym am 20 Nov. 2017
Hi all,
I'd like to make a figure "the current figure" by using
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"?
  2 Kommentare
Thomas am 11 Jul. 2012
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 am 11 Jul. 2012
Sorry about to this

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan am 11 Jul. 2012
set(0, 'CurrentFigure', figureHandle)
  1 Kommentar
raym am 20 Nov. 2017
It works fine and solved my problems since I have huge amount of lines to plot on one figure. Thanks for your powerful answer!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

John Petersen
John Petersen am 11 Jul. 2012
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,
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 am 11 Jul. 2012
figure(myPicture), set(myPicture,'visible','off')
then when you want


Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by