<div dir="ltr"><div>Hi Samuel</div><div><br></div><div>Thank you. This thing with the direction of the lines is difficult to "discover" by accident. :-)</div><div><br></div><div>... And thanks for the good help for param3d(1). I hope Scilab will adopt it.</div><div><br></div><div>Best regards,</div><div>Claus</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 3, 2018 at 8:02 PM, Samuel Gougeon <span dir="ltr"><<a href="mailto:sgougeon@free.fr" target="_blank">sgougeon@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_-7494607961059329397moz-cite-prefix">Le 03/02/2018 à 18:35, Claus Futtrup a
      écrit :<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">.../...
        <span><div>The above code draws lines in the Y-axis direction. What I
          intended to do is to draw lines in the frequency-direction
          (x-axis direction). I see how e.children(i) manipulates the
          curves, but have failed to find a way to change this (= the
          direction of the lines). I looked also at the examle that
          Samuel gave with the plot3d3, where he draws a globe and can
          turn lines on/off in the two directions ... I also looked at
          the latest proposal by Samuel to updated param3d(1) and the
          lines in his last examples are drawn along the x-axis
          direction. <br>
        </div>
      </span></div>
    </blockquote><span>
    <br>
    <blockquote type="cite">What I intended to do is to draw lines in
      the frequency-direction (x-axis direction).</blockquote></span>
    Claus,<br>
    <br>
    There are 2 distinct things:<br>
    a) the law you want to plot: Z(f)_theta or Z(theta)_f<br>
    b) the direction along which you want to plot the chosen law at the
    varying parameter<br>
    <br>
    The only thing that you can't choose is that param3d1() plots each
    line from a particular triplet of X,Y,Z <b>columns</b>,<br>
    for all columns.<br>
    Then, you can do what you want.<br>
    Here is again the param3d1() example, but in an asymetric version (a
    long and a short sides):<br>
    <br>
    <pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(0,0,0)">X</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(74,85,219)">]</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(255,102,0)">ndgrid</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(92,92,92)">-</span><span style="color:rgb(188,143,143)">11</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">0.5</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">9</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(92,92,92)">-</span><span style="color:rgb(188,143,143)">5</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">0.5</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">6</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">// x is the long side, y the short one</span>

<span style="color:rgb(255,102,0)">clf</span>
<span style="color:rgb(255,102,0)">subplot</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(0,0,0)">,</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">R</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">sqrt</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">X</span><span style="color:rgb(92,92,92)">.*</span><span style="color:rgb(0,0,0)">X</span> <span style="color:rgb(92,92,92)">+</span> <span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(92,92,92)">.*</span><span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(74,85,219)">)</span> <span style="color:rgb(92,92,92)">+</span> <span style="color:rgb(218,112,214)">%eps</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">Z</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">sin</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">R</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(92,92,92)">./</span><span style="color:rgb(0,0,0)">R</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(50,185,185)">param3d1</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">X</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Z</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">150</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">85</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">flag</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">2</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">4</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(74,85,219)">)</span>

<span style="color:rgb(255,102,0)">subplot</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(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)">R</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">sqrt</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">X</span><span style="color:rgb(92,92,92)">'</span><span style="color:rgb(92,92,92)">.*</span><span style="color:rgb(0,0,0)">X</span><span style="color:rgb(92,92,92)">'</span> <span style="color:rgb(92,92,92)">+</span> <span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(92,92,92)">'</span><span style="color:rgb(92,92,92)">.*</span><span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(92,92,92)">'</span><span style="color:rgb(74,85,219)">)</span> <span style="color:rgb(92,92,92)">+</span> <span style="color:rgb(218,112,214)">%eps</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(0,0,0)">Z</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">sin</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">R</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(92,92,92)">./</span><span style="color:rgb(0,0,0)">R</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(50,185,185)">param3d1</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">X</span><span style="color:rgb(92,92,92)">'</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Y</span><span style="color:rgb(92,92,92)">'</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">Z</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">150</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">85</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(0,0,0)">flag</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">2</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">4</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(74,85,219)">)</span></pre>
    <img width="502" height="142" alt="" src="cid:part1.1A57008A.700F4F08@free.fr"><br>
    <br>
    Since this looks not trivial, i will change the example in the page
    to better illustrate both cases.<br>
    <br>
    Cheers<span class="HOEnZb"><font color="#888888"><br>
    Samuel<br>
    <br>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" rel="noreferrer">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>