<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:"Courier New";
mso-fareast-language:FR;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:windowtext'>Ok<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'>Sorry<o:p></o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:windowtext'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='color:windowtext;mso-fareast-language:FR'>De :</span></b><span style='color:windowtext;mso-fareast-language:FR'> users <users-bounces@lists.scilab.org> <b>De la part de</b> Samuel Gougeon<br><b>Envoyé :</b> jeudi 26 décembre 2019 19:56<br><b>À :</b> users@lists.scilab.org<br><b>Objet :</b> Re: [Scilab-users] Unexpected Figure n°0 in xload instruction under XCOS - Buggzilla 16289<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Le 26/12/2019 à 12:01, Perrichon a écrit :<span style='mso-fareast-language:FR'><o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Dear,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Runing routine in xload help under XCOS, but adding a xload in figure n°100, also create an unexpected empty Figure n°0</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>So 2 figures are generated : Empty Figure 0 and Figure 100 in the following example</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>t=0:0.01:10;<o:p></o:p></p><p class=MsoNormal>subplot(211),plot2d(t,sin(t))<o:p></o:p></p><p class=MsoNormal>subplot(212),plot2d(t,sin(3*t))<o:p></o:p></p><p class=MsoNormal>xsave(TMPDIR + "/foo.scg", gcf())<o:p></o:p></p><p class=MsoNormal>clf()<o:p></o:p></p><p class=MsoNormal>xload(TMPDIR + "/foo.scg",100)<o:p></o:p></p></blockquote><p><o:p> </o:p></p><p>I don't catch what you mean with <i><span style='font-size:10.0pt'>Runing routine in xload help under XCOS.</span></i><o:p></o:p></p><p><span style='font-size:10.0pt'>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.</span><o:p></o:p></p><p><span style='font-size:10.0pt'>Regards</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:FR'><o:p> </o:p></span></p></div></body></html>