<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Antoine,<br>
    Brillant! My search did not reach out that far. I only fiddled
    around with the parents children and grand...grandchildren stuff.<br>
    BTW: Is " Look ma'  " the felt German for <i>Guck mal</i>?<br>
    Kind regards<br>
    Helmut<br>
    ----------------------------------------------<br>
    <div class="moz-cite-prefix">Am 17.03.2017 14:01, schrieb Antoine
      Monmayrant:<br>
    </div>
    <blockquote cite="mid:340d-58cbde00-1-1dda50c0@87303880" type="cite">
      <pre wrap="">Le Jeudi, Mars 16, 2017 11:32 CET, Jens Simon Strom <a class="moz-txt-link-rfc2396E" href="mailto:j.s.strom@hslmg.de"><j.s.strom@hslmg.de></a> a écrit: 
 
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,
How would you avoid the loop in the following example?
</pre>
      </blockquote>
      <pre wrap="">
By setting the colormap beforehand so that is only contains the color you want:

n2_=-1000:200:1000;
nS_=-1000:200:1000;
[N2,NS]=ndgrid(n2_,nS_);
N1=2.6*N2+(3.6)*NS;
xdel();

levels=[-60:10:60];
h=scf();
h.color_map=(ones(levels)).'*[0,1, 0];// replace the green [0,1, 0]; by any rgb color you want
contour(n2_,nS_,N1/100,levels);

It's a workaround, it's ugly, but it does the job: "Look ma', no loop!".

Hope it helps,

Antoine


</pre>
      <blockquote type="cite">
        <pre wrap="">
n2_=-1000:200:1000;
nS_=-1000:200:1000;
[N2,NS]=ndgrid(n2_,nS_);
N1=2.6*N2+(3.6)*NS;
xdel();
contour(n2_,nS_,N1/100,[-60:10:60])

ca=gca();  Comp=ca.children;  //colum matrix of handles: (Compound)
nComp=length(Comp);
for  k=1:nComp
  Comp(k).children.foreground=3;     
end

Regards
Jens


</pre>
      </blockquote>
      <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>