<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=utf-8">
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Monospaced;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
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";}
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:12.0pt;
        font-family:"Times New Roman",serif;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.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 lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Merci, ça fonctionne !<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Effectivement un rattachement direct au subplot faciliterait grandement l’accès à cette fonctionnalité.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">David<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><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="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> users-fr <users-fr-bounces@lists.scilab.org>
<b>De la part de</b> Stéphane Mottelet<br>
<b>Envoyé :</b> jeudi 17 juin 2021 15:58<br>
<b>À :</b> users-fr@lists.scilab.org<br>
<b>Objet :</b> Re: [Users-fr] newaxes et subplot<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Désolé David, il manquait un option sur la 3e ligne :<o:p></o:p></p>
<pre><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:#32B9B9">set</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:black">f,</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:rosybrown">"layout_options"</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:black">,createLayoutOptions</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:rosybrown">"grid"</span><span style="font-size:13.5pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:13.5pt;font-family:"Monospaced",serif"> <span style="color:#4A55DB">[</span><span style="color:rosybrown">2</span><span style="color:black">,</span><span style="color:rosybrown">2</span><span style="color:#4A55DB">])</span><span style="color:black">,</span><span style="color:rosybrown">"layout"</span><span style="color:black">,</span> <span style="color:rosybrown">"grid"</span><span style="color:#4A55DB">)</span><span style="color:black">;</span></span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black"><o:p></o:p></span></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black"><o:p> </o:p></span></pre>
<div>
<p class="MsoNormal">Ca devrait fonctionner comme ça.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">S.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Le 17/06/2021 à 15:46, CHEZE David 227480 a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">clf;</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">f</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:#5C5C5C">=</span> <span style="color:black">gcf</span><span style="color:#4A55DB">()</span><span style="color:black">;</span></span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9">set</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">f,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">"layout_options"</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,createLayoutOptions</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">"grid"</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:#4A55DB">[</span><span style="color:rosybrown">2</span><span style="color:black">,</span><span style="color:rosybrown">2</span><span style="color:#4A55DB">]))</span><span style="color:black">;</span></span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">c</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:#5C5C5C">=</span> <span style="color:black">createConstraints</span><span style="color:#4A55DB">(</span><span style="color:rosybrown">"grid"</span><span style="color:#4A55DB">)</span><span style="color:black">;</span> <i><span style="color:#64AE64">//Create the constraint for nested uicontrols</span></i></span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif"> </span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#A020F0">for</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:black">i</span><span style="color:#5C5C5C">=</span><span style="color:rosybrown">4</span><span style="color:#FFAA00">:</span><span style="color:#5C5C5C">-</span><span style="color:rosybrown">1</span><span style="color:#FFAA00">:</span><span style="color:rosybrown">1</span></span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif">    <span style="color:black">u_grid</span><span style="color:#4A55DB">(</span><span style="color:black">i</span><span style="color:#4A55DB">)</span> <span style="color:#5C5C5C">=</span> <span style="color:#32B9B9">uicontrol</span><span style="color:#4A55DB">(</span><span style="color:black">f,</span><span style="color:rosybrown">"style"</span><span style="color:black">,</span> <span style="color:rosybrown">"frame"</span><span style="color:black">,</span><span style="color:rosybrown">"constraints"</span><span style="color:black">,</span> <span style="color:black">c,</span> <span style="color:rosybrown">"background"</span><span style="color:black">,</span><span style="color:#4A55DB">[</span><span style="color:rosybrown">1</span> <span style="color:rosybrown">1</span> <span style="color:rosybrown">1</span><span style="color:#4A55DB">])</span><span style="color:black">;</span></span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#A020F0">end</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif"> </span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9">newaxes</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">u_grid</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">))</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">;</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">subplot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">plot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#FFAA00">:</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">10</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">subplot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">plot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9">cos</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#FFAA00">:</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">10</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">))</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif"> </span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9">newaxes</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">u_grid</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">4</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">))</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">;</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">subplot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">plot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#FFAA00">:</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">10</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">subplot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">,</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><o:p></o:p></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">plot</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9">cos</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#FFAA00">:</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">10</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">))</span><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Stéphane Mottelet<o:p></o:p></pre>
<pre>Ingénieur de recherche<o:p></o:p></pre>
<pre>EA 4297 Transformations Intégrées de la Matière Renouvelable<o:p></o:p></pre>
<pre>Département Génie des Procédés Industriels<o:p></o:p></pre>
<pre>Sorbonne Universités - Université de Technologie de Compiègne<o:p></o:p></pre>
<pre>CS 60319, 60203 Compiègne cedex<o:p></o:p></pre>
<pre>Tel : +33(0)344234688<o:p></o:p></pre>
<pre><a href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a><o:p></o:p></pre>
</div>
</body>
</html>