<div dir="ltr">Hi Rafael<div><br></div><div>I've tried to make this code work for me, but ... (code):</div><div><br></div><div>
<span class="gmail-im" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">// START OF CODE<br>frequencies = [201 811 3183 12862 25113]; // Hz;<br></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">angles = [0 30 60 90]; // deg</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span class="gmail-im" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">m_norm = [ 1.0 0.9945629 0.9643959 0.8756431;<br> 1.0 0.9914442 1.0244046 0.9414654;<br> 1.0 0.9910279 0.9670986 0.8932413;<br> 1.0 0.9339808 0.8378147 0.7067978;<br> 1.0 0.8985782 0.7536068 0.5074218];<br></span><span class="gmail-im" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">[nf na] = size(m_norm)<br>A = (angles .*. ones(nf,1))';<br>F = (frequencies .*. ones(na,1));<br>M = 20*log10(m_norm'); // dB scale<br>clf();<br>sp = gca();<br>param3d1(F,A,M,alpha=50,theta=<wbr>-110,flag=[2,4]);<br>e = gce();<br>for i=1:nf;<br></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> e.children(i).foreground = color('dark blue');</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> e.children(i).thickness = 2;</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span class="gmail-im" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">end<br>xgrid;<br>sp.log_flags = "lnn"; // x-axis log scale (frequencies)<br>sp.cube_scaling = "on";<br>xlabel("Frequency (Hz)");<br>ylabel("Angle (deg)");<br>zlabel("Mag (dB)");<br>// END OF CODE</span>
<br></div><div><br></div><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. </div><div><br></div><div>Is the only solution to plot angle on x-axis and frequencies on y-axis? (the rotate the cube differently) ...</div><div><br></div><div>(it's weird how one can stare at this for days without really understanding what goes on)</div><div><br></div><div>Best regards,</div><div>Claus</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 28, 2018 at 4:39 PM, Rafael Guerra <span dir="ltr"><<a href="mailto:jrafaelbguerra@hotmail.com" target="_blank">jrafaelbguerra@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Claus,<br>
<br>
You can also try param3d1, which needs to be called only once:<br>
<br>
</span><span class="">// START OF CODE<br>
frequencies = [201 811 3183 12862 25113]; // Hz;<br>
</span>angles = [0 30 60 90]; // deg<br>
<span class="">m_norm = [ 1.0 0.9945629 0.9643959 0.8756431;<br>
1.0 0.9914442 1.0244046 0.9414654;<br>
1.0 0.9910279 0.9670986 0.8932413;<br>
1.0 0.9339808 0.8378147 0.7067978;<br>
1.0 0.8985782 0.7536068 0.5074218];<br>
</span><span class="">[nf na] = size(m_norm)<br>
A = (angles .*. ones(nf,1))';<br>
F = (frequencies .*. ones(na,1));<br>
M = 20*log10(m_norm'); // dB scale<br>
clf();<br>
sp = gca();<br>
param3d1(F,A,M,alpha=50,theta=<wbr>-110,flag=[2,4]);<br>
e = gce();<br>
for i=1:nf;<br>
</span> e.children(i).foreground = color('dark blue');<br>
e.children(i).thickness = 2;<br>
<span class="">end<br>
xgrid;<br>
sp.log_flags = "lnn"; // x-axis log scale (frequencies)<br>
sp.cube_scaling = "on";<br>
xlabel("Frequency (Hz)");<br>
ylabel("Angle (deg)");<br>
zlabel("Mag (dB)");<br>
// END OF CODE<br>
<br>
Regards,<br>
Rafael<br>
</span>______________________________<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" rel="noreferrer" target="_blank">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br></div>