[Scilab-users] gcf()

Adrien Vogt-Schilb vogt at centre-cired.fr
Fri Jul 26 23:29:11 CEST 2013


On 26/07/2013 22:42, Serge Steer wrote:
> Le 26/07/2013 21:55, Stefan Du Rietz a écrit :
>> Hi,
>> if there is no figure, gcf() should return an empty handle, shouldn't 
>> it? Now you get a handle to a new default figure, which is opened. 
>> That is the expected (and actual) response from scf().
>>
>> Is this a bug in gcf()?
>>
> It should be a logical choice, but changing the gcf and 
> get("current_figure") behavior will breaks compatibility.
> A solution for testing if there is no figure is to check winsid()==[]
>
> Serge
I thought that ==[] should be discouraged.
Then isempty(winsid()) would be a better solution

Adrien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130726/c9697760/attachment.htm>


More information about the users mailing list