<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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">Bonjour,<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">Merci Stephane, j’ai cru comprendre le principe mais je pense que je n’ai pas le même rendu du code avec ma config WIN10-64bits scilab
6.1.0 .<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">Ça me donne la figure ci-dessous. J’ai l’impression que les subplot ne sont pas tolérés .<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><img width="611" height="579" style="width:6.3645in;height:6.0312in" id="Image_x0020_1" src="cid:image001.png@01D7638F.EAE57B60"></span><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>
<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>
<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> mardi 15 juin 2021 17:20<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>Bonjour,<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 15/06/2021 à 14:12, CHEZE David 227480 a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Bonjour,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">J’utilise régulièrement newaxes pour des graphiques avec un second axes des ordonnées selon la nature des données à représenter, généralement une figure par fenêtre graphique. J’ai
essayé d’utiliser newaxes pour un usage similaire mais cette fois au niveau de vignettes via subplot dans une fenêtre de figure graphique mais le nouvel axe ajouté est tracé en référence à la taille de la fenêtre graphique entière, pas dans la vignette. Est-ce
qu’il y aurait une méthode pour que newaxes suive la logique des subplot ?<o:p></o:p></p>
</div>
</blockquote>
<p>Tu peux utiliser des uicontrol de type "Frame" avec un layout de type "grid". En créant un nouvel axe dans une Frame puis en enchainant les subplot cela a l'air de marcher comme tu le voudrais :<o:p></o:p></p>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">clf;</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><o:p></o:p></span></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><o:p></o:p></span></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><o:p></o:p></span></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p> </o:p></span></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><o:p></o:p></span></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><o:p></o:p></span></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#A020F0">end</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p> </o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></pre>
<pre><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p> </o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></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><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></pre>
<p>Idéalement, pour simplifier, il faudrait que subplot() accepte un premier parametre optionel qui soit de type Figure ou Frame (comme newaxes)
<o:p></o:p></p>
<p>S.<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Merci<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">David
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>users-fr mailing list<o:p></o:p></pre>
<pre><a href="mailto:users-fr@lists.scilab.org">users-fr@lists.scilab.org</a><o:p></o:p></pre>
<pre><a href="https://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0&r=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5&f=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfBH2BoDUjg8Y54xjTPKmO5dyqs07ZteowNquP6uMuprUbbg8UTy9A0VCg&u=http%3A//lists.scilab.org/mailman/listinfo/users-fr&k=CXOq">https://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0&r=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5&f=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfBH2BoDUjg8Y54xjTPKmO5dyqs07ZteowNquP6uMuprUbbg8UTy9A0VCg&u=http%3A//lists.scilab.org/mailman/listinfo/users-fr&k=CXOq</a><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>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>