[Scilab-users] gcf()

Stefan Du Rietz sdr at durietz.se
Fri Jul 26 23:37:24 CEST 2013


On 2013-07-26 23:29, Adrien Vogt-Schilb wrote:
--------------------
> 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

That is exactly what I did. ;-)

Stefan
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>





More information about the users mailing list