[Scilab-users] Unexpected Figure n°0 in xload instruction under XCOS - Buggzilla 16289
Perrichon
perrichon.pierre at wanadoo.fr
Fri Dec 27 10:10:49 CET 2019
Ok
Sorry
De : users <users-bounces at lists.scilab.org> De la part de Samuel Gougeon
Envoyé : jeudi 26 décembre 2019 19:56
À : users at lists.scilab.org
Objet : Re: [Scilab-users] Unexpected Figure n°0 in xload instruction under
XCOS - Buggzilla 16289
Le 26/12/2019 à 12:01, Perrichon a écrit :
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)
I don't catch what you mean with Runing routine in xload help under XCOS.
But running this code in the Scilab console yields what is expected. The
default figure #0 where plots are drawn and finally cleared is kept, and its
saved version is loaded in a separate figure #100.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191227/5f135b6f/attachment.htm>
More information about the users
mailing list