[Scilab-users] Unexpected Figure n°0 in xload instruction under XCOS - Buggzilla 16289
Perrichon
perrichon.pierre at wanadoo.fr
Thu Dec 26 12:01:31 CET 2019
Dear,
Runing routine in xload help under XCOS, but adding a xload in figure n°100,
also create an unexpected empty Figure n°0
So 2 figures are generated : Empty Figure 0 and Figure 100 in the following
example
t=0:0.01:10;
subplot(211),plot2d(t,sin(t))
subplot(212),plot2d(t,sin(3*t))
xsave(TMPDIR + "/foo.scg", gcf())
clf()
xload(TMPDIR + "/foo.scg",100)
Workaround after the set of xload :
// Détruire la fenêtre n°0 (bug?)
//-------------------------------
lista=winsid()
b=find(lista==0)
if b<>[] then xdel(lista(b)); end;
Best regards.
Pierre P.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191226/2cba7d60/attachment.htm>
More information about the users
mailing list