[Scilab-users] Unexpected Figure n°0 in xload instruction under XCOS - Buggzilla 16289
Samuel Gougeon
sgougeon at free.fr
Thu Dec 26 19:56:13 CET 2019
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/20191226/7c49e036/attachment.htm>
More information about the users
mailing list