[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [OctDev] Suppresing figure creation
From: |
Ben Abbott |
Subject: |
Re: [OctDev] Suppresing figure creation |
Date: |
Sat, 24 Mar 2012 10:04:48 -0400 |
On Mar 24, 2012, at 9:57 AM, Daniel J Sebald wrote:
> On 03/24/2012 06:15 AM, Juan Pablo Carbajal wrote:
>> On Sat, Mar 24, 2012 at 11:58 AM, Michael Goffioul
>> <address@hidden> wrote:
>
>>> Do you mean something like this:
>>>
>>> figure ('visible', 'off');
>>> plot (...)
>>>
>>> Michael.
>>
>> Thanks Michael,
>>
>> Can anybody using text based output test that?
>> It works fine in gnuplot and fltk.
>
> I don't have the latest development version of Octave. Could someone with a
> fairly up-to-date version please confirm this works properly?
>
> figure ('visible', 'off');
> plot([1:50]);
> figure ('visible', 'on');
>
> I'm not seeing a graph when the figure becomes visible. Further issuing
>
> figure ('visible', 'off');
> figure ('visible', 'on');
>
> causes a new blank figure to appear.
>
> Thanks,
>
> Dan
You need to pass the figure handle. Otherwise each call will create a new
figure. The first will be hidden and the second visible.
The commands below should do what you want.
figure (gcf (), 'visible', 'off');
plot ([1:50]);
figure (gcf (), 'visible', 'on');
Ben