<div dir="ltr"><div>Thank you very much for the quick response.</div><div><br></div><div>I have tried both options as shown in the sample file below (also attached).</div><div><br></div><div>Option 1 using legends works to some extent. However, the style markers are not well indicated in the legend.</div><div><br></div><div>Option 2 with legend placed before and after the newaxes command shows only the last legend entry.</div><div><br></div><div>Any assistance to render them more correctly will be greatly appreciated.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Samuel Enibe</div><div dir="ltr"><br></div></div></div></div></div></div></div></div><div>THE SCRIPTS IS AS FOLLOWS</div><div><br></div><div><pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(0,0,0)">ww1</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">scf</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//new plot window</span>
<span style="color:rgb(0,0,0)">x1</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">0</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">10</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">90</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//x1 values</span>
<span style="color:rgb(0,0,0)">y1</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">12.27</span> <span style="color:rgb(188,143,143)">12.09</span> <span style="color:rgb(188,143,143)">11.53</span> <span style="color:rgb(188,143,143)">10.63</span> <span style="color:rgb(188,143,143)">9.4</span> <span style="color:rgb(188,143,143)">7.89</span> <span style="color:rgb(188,143,143)">6.14</span> <span style="color:rgb(188,143,143)">4.2</span> <span style="color:rgb(188,143,143)">2.13</span> <span style="color:rgb(188,143,143)">0</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//y1 data</span>
<span style="color:rgb(0,0,0)">x2</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">2</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(92,92,92)">-</span><span style="color:rgb(188,143,143)">0.5</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(92,92,92)">-</span><span style="color:rgb(188,143,143)">2</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//x2 data</span>
<span style="color:rgb(0,0,0)">y2</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">4.42</span> <span style="color:rgb(188,143,143)">6.01</span> <span style="color:rgb(188,143,143)">7.85</span> <span style="color:rgb(188,143,143)">9.94</span> <span style="color:rgb(188,143,143)">12.27</span> <span style="color:rgb(188,143,143)">14.85</span> <span style="color:rgb(188,143,143)">17.68</span> <span style="color:rgb(188,143,143)">20.74</span> <span style="color:rgb(188,143,143)">24.05</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//y2 data</span>
<span style="color:rgb(100,174,100);font-style:italic">//OPTION 1 USING legends keyword</span>
<span style="color:rgb(0,0,0)">plot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">x1</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">y1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">-</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//first plot</span>
<span style="color:rgb(50,185,185)">xtitle</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">X1 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y1 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">gca1</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">gca</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//get graphic entities</span>
<span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">thickness</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">3</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set line thikness 3 pixels</span>
<span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">bottom</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set x-location to top</span>
<span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">y_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">left</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set to right</span>
<span style="color:rgb(0,0,0)">bb</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">newaxes</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//create new axes for second plot</span>
<span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">top</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set x-location to top</span>
<span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">y_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">right</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set to right</span>
<span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">filled</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">off</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">plot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">x2</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">y2</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">--</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//second plot</span>
<span style="color:rgb(50,185,185)">xtitle</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">X2 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y2 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">gca2</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">gca</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//get graphic entities</span>
<span style="color:rgb(0,0,0)">gca2</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">thickness</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">3</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set line thikness 3 pixels</span>
<span style="color:rgb(0,0,0)">legends</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y1 vs X1</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y2 vs X2</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">2</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">ll</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">ww2</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">scf</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//new plot window</span>
<span style="color:rgb(0,0,0)">plot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">x1</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">y1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">-</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//first plot</span>
<span style="color:rgb(50,185,185)">xtitle</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">X1 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y1 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">gca1</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">gca</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//get graphic entities</span>
<span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">thickness</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">3</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set line thikness 3 pixels</span>
<span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">bottom</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set x-location to top</span>
<span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">y_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">left</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set to right</span>
<span style="color:rgb(0,0,0)">legend</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">gca1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y1 vs X1</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">bb</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">newaxes</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//create new axes for second plot</span>
<span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">x_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">top</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set x-location to top</span>
<span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">y_location</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">right</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set to right</span>
<span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">filled</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">off</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">plot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">bb</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">x2</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">y2</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">--</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//second plot</span>
<span style="color:rgb(50,185,185)">xtitle</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">X2 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y2 Title</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">gca2</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0)">gca</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//get graphic entities</span>
<span style="color:rgb(0,0,0)">gca2</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">thickness</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(188,143,143)">3</span><span style="color:rgb(0,0,0)">;</span><span style="color:rgb(100,174,100);font-style:italic">//set line thikness 3 pixels</span>
<span style="color:rgb(0,0,0)">legend</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">gca2</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">Y2 vs X2</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">ll</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 28, 2021 at 10:16 AM CRETE Denis <<a href="mailto:denis.crete@thalesgroup.com">denis.crete@thalesgroup.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="FR">
<div class="gmail-m_-599700479651287172WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">Try using legends([”A”;”B”],1:2) instead of legend([”A” ;”B”]).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">Alternatively, you may try legend(”A” ) before newaxes if called and legend(”B”) after.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">HTH<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">Denis<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"> users <<a href="mailto:users-bounces@lists.scilab.org" target="_blank">users-bounces@lists.scilab.org</a>>
<b>De la part de</b> Samuel Enibe<br>
<b>Envoyé :</b> mercredi 28 juillet 2021 10:16<br>
<b>À :</b> Users mailing list for Scilab <<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a>><br>
<b>Objet :</b> Re: [Scilab-users] Plot Graphs on Different Axes<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">How can I add legends to the graphics, I tried something like legend (["A"; "B"])<u></u><u></u></p>
<div>
<p class="MsoNormal"> Only the first entry is accepted while the second one is left out. <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, 28 Jul 2021, 09:05 Samuel Enibe, <<a href="mailto:samuel.enibe@unn.edu.ng" target="_blank">samuel.enibe@unn.edu.ng</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<p class="MsoNormal">Thank you very much Denis and Christopher. I have tried it with the newaxes command and filled = "off" and it worked. <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you very much and God bless you. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, 27 Jul 2021, 17:10 CRETE Denis, <<a href="mailto:denis.crete@thalesgroup.com" target="_blank">denis.crete@thalesgroup.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">Hello,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">I think this should work:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black" lang="EN-US">scf();<br>
plot2d(x1',y1')<br>
a=newaxes();<br>
plot2d(x2',y2')<br>
a.x_location="top";<br>
a.y_location="right";<br>
a.filled="off";</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">HTH</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US">Denis</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Calibri",sans-serif">De :</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif"> users <</span><a href="mailto:users-bounces@lists.scilab.org" target="_blank"><span style="font-size:11pt;font-family:"Calibri",sans-serif">users-bounces@lists.scilab.org</span></a><span style="font-size:11pt;font-family:"Calibri",sans-serif">>
<b>De la part de</b> Samuel Enibe<br>
<b>Envoyé :</b> mardi 27 juillet 2021 17:17<br>
<b>À :</b> Users mailing list for Scilab <</span><a href="mailto:users@lists.scilab.org" target="_blank"><span style="font-size:11pt;font-family:"Calibri",sans-serif">users@lists.scilab.org</span></a><span style="font-size:11pt;font-family:"Calibri",sans-serif">><br>
<b>Objet :</b> [Scilab-users] Plot Graphs on Different Axes</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">I have the following sets of data:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">x1 = [0 10 20 30 40 50 60 70 80 90];<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">y1 = [12.27 12.09 11.53 10.63 9.4 7.89 6.14 4.2 2.13 0];<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">x2 = [2 1.5 1 0.5 0 -0.5 -1 -1.5 -2];<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">y2 = [4.42 6.01 7.85 9.94 12.27 14.85 17.67 20.74 24.05];<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I want to plot y1 with x1 (Graph 1) on Bottom x-axis and left y-axis and y2 with x2 (Graph 2) on Top x-axis and Right y-axis. The axes have different ranges of values as seen from
the example data<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">What is the simplest way of doing this?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">Samuel Enibe<br>
University of Nigeria, Nsukka, Nigeria<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>