<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi there Samuel,<br>
    Thanks for the real but yet disfunctional solution. I will wait in
    patience until  Scilab 6.0.1 is available.<br>
    Kind regards<br>
    Jens<br>
-------------------------------------------------------------------------------------------------------------------------------------------------<br>
    <div class="moz-cite-prefix">Am 18.03.2017 17:14, schrieb Samuel
      Gougeon:<br>
    </div>
    <blockquote cite="mid:feb1ad5e-aa27-f1e6-56ce-88b7b2d1b2d9@free.fr"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hello Jens,<br>
        <br>
        Le 16/03/2017 à 11:32, Jens Simon Strom a écrit :<br>
      </div>
      <blockquote cite="mid:58CA69A4.2080007@hslmg.de" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        Hi,<br>
        How would you avoid the loop in the following example?<br>
        <br>
        <pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><span style="color:rgb(0,0,0);">n2_</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1000</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(188,143,143);">200</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(188,143,143);">1000</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">nS_</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1000</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(188,143,143);">200</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(188,143,143);">1000</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(74,85,219);">[</span><span style="color:rgb(0,0,0);">N2</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">NS</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">ndgrid</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">n2_</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">nS_</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">N1</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">2.6</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(0,0,0);">N2</span><span style="color:rgb(92,92,92);">+</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">3.6</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(0,0,0);">NS</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">xdel</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(174,92,176);text-decoration:underline;">contour</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">n2_</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">nS_</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">N1</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">100</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">60</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);">60</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(74,85,219);">)</span>

<span style="color:rgb(0,0,0);">ca</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">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(0,0,0);">Comp</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">ca</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">children</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(100,174,100);font-style:italic;">//colum matrix of handles: (Compound)</span>
<span style="color:rgb(0,0,0);">nComp</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">length</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">Comp</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">for</span> <span style="color:rgb(0,0,0);">k</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(0,0,0);">nComp</span>
 <span style="color:rgb(0,0,0);">Comp</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">k</span><span style="color:rgb(74,85,219);">)</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);">foreground</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(160,32,240);">end
</span></pre>
      </blockquote>
      <br>
      This code also changes the color of the frame of text labels (if
      it was displayed).<br>
      <br>
      The ideal expected way would be:<br>
      <font color="#cc0000"><tt>ca.children.children(2:2:$).foreground =
          color("green");</tt><tt><br>
        </tt></font><br>
      But this instruction yields an error. This is a bug, just reported
      here:<br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://bugzilla.scilab.org/15079">http://bugzilla.scilab.org/15079</a><br>
      The proposed solution shall be available in Scilab 6.0.1.<br>
      <br>
      Before it, you may simply do the following:<br>
      <br>
      <tt>edit %h_get</tt><tt><br>
      </tt><tt>// in the file, replace the instruction</tt><tt><span
          style="color:rgb(0,0,0);"><br>
          out_vect</span></tt><tt> </tt><tt><span
          style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span
          style="color:rgb(74,85,219);">[</span></tt><tt><span
          style="color:rgb(0,0,0);">out_vect</span></tt><tt>,</tt><tt><span
          style="color:rgb(0,0,0);"></span></tt><tt> </tt><tt><span
          style="color:rgb(50,185,185);">get</span></tt><tt><span
          style="color:rgb(74,85,219);">(</span></tt><tt><span
          style="color:rgb(0,0,0);">hdl</span></tt><tt><span
          style="color:rgb(74,85,219);">(</span></tt><tt><span
          style="color:rgb(0,0,0);">i</span></tt><tt><span
          style="color:rgb(74,85,219);">)</span></tt><tt><span
          style="color:rgb(0,0,0);">,</span></tt><tt><span
          style="color:rgb(0,0,0);">str</span></tt><tt><span
          style="color:rgb(74,85,219);">)</span></tt><tt><span
          style="color:rgb(74,85,219);">]<br>
          // with<br>
        </span></tt><tt><span style="color:rgb(0,0,0);">out_vect</span></tt><tt>
      </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span
          style="color:rgb(74,85,219);">[</span></tt><tt><span
          style="color:rgb(0,0,0);">out_vect</span></tt><tt> </tt><tt><span
          style="color:rgb(0,0,0);">;</span></tt><tt> </tt><tt><span
          style="color:rgb(50,185,185);">get</span></tt><tt><span
          style="color:rgb(74,85,219);">(</span></tt><tt><span
          style="color:rgb(0,0,0);">hdl</span></tt><tt><span
          style="color:rgb(74,85,219);">(</span></tt><tt><span
          style="color:rgb(0,0,0);">i</span></tt><tt><span
          style="color:rgb(74,85,219);">)</span></tt><tt><span
          style="color:rgb(0,0,0);">,</span></tt><tt><span
          style="color:rgb(0,0,0);">str</span></tt><tt><span
          style="color:rgb(74,85,219);">)</span></tt><tt><span
          style="color:rgb(74,85,219);">]<br>
        </span></tt><br>
      Then exec %h_get.sci<br>
      If you want to have it fixed permanently before the 6.0.1 release,
      you must recompile the graphics library:<br>
      <br>
      <font color="#cc0000"><tt>cd SCI/modules/graphics/macros</tt><tt><br>
        </tt><tt>predef clear</tt><tt><br>
        </tt><tt>genlib graphicslib</tt><tt><br>
        </tt><tt>clear %h_get</tt><tt><br>
        </tt></font><br>
      and that's all for ever: Then the syntaxes<br>
      <font size="-1"><tt>ca.children.children(2:2:$).foreground                  

          // reading values = extraction</tt><tt><br>
        </tt><tt>ca.children.children(2:2:$).foreground =
          color("green"); // setting value = insertion</tt><tt><br>
        </tt></font>will work even after restarting Scilab<br>
      <br>
      HTH<br>
      Samuel<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>