<div dir="ltr"><div>beside of not beeing sure if you want to have:</div><div><br></div><div>ca2_ = gca(); </div><div><br></div><div>instead of</div><div><br></div><div>ca2=gca();</div><div><br></div><div><br></div><div>ca2_.visible = "on" or "off"; // shows or hides the plot in figure1</div><div><br></div><div>ca2_.parent.figure_id // = 1;</div><div><br></div><div>however: </div><div><br></div><div>ca2_.parent.figure_id = 2; // changes both figure ID's.</div><div><br></div><div>Why is that?</div><div><br></div><div>I mean: Why does "ca1" also get's the figure_id from "ca2" ?<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-21 14:32 GMT+01:00 Jens Simon Strom <span dir="ltr"><<a href="mailto:j.s.strom@hslmg.de" target="_blank">j.s.strom@hslmg.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<pre style="font-family:Monospaced;font-style:normal"><big><big><span style="color:rgb(50,185,185)"><big><big><span style="color:rgb(50,185,185)"><font color="#000000"><font face="Courier New, Courier, monospace"><small><small>Hallo,
The script below is</small></small></font></font></span></big></big> <font color="#000000"><font face="Courier New, Courier, monospace">to make f2 a copy of f1. However f2 is <i>empty</i> although its axes, compound, and polyline data look as expected.
(Version 5.5.2) </font></font>
<font face="Courier New">xdel</font></span><font face="Courier New"><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(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(0,0,0)">f1</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(50,185,185)">figure</span><span style="color:rgb(74,85,219)">(</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)">;</span>
<span style="color:rgb(174,92,176);text-decoration:underline">plot</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">3</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(188,143,143)">1</span><span style="color:rgb(255,170,0)">:</span><span style="color:rgb(188,143,143)">3</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(0,0,0)">ca1</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(100,174,100);font-style:italic">//axes with one compound child
//</span>
<span style="color:rgb(0,0,0)">f2</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(50,185,185)">figure</span><span style="color:rgb(74,85,219)">(</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)">ca2</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(100,174,100);font-style:italic">//axes without children</span>
<span style="color:rgb(0,0,0)">ca2_</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(0,0,0)">ca1</span><span style="color:rgb(100,174,100);font-style:italic">//axes with one compound child</span>
<span style="color:rgb(0,0,0)">ca2_c</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(0,0,0)">ca2_</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(100,174,100);font-style:italic">//compound with one polyline child</span>
<span style="color:rgb(0,0,0)">ca2_cc</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(0,0,0)">ca2_c</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">children</span><span style="color:rgb(100,174,100);font-style:italic">//<wbr>polyline, same as in ca1</span></font></big></big></pre>
How can the polyline be made visible?<br>
<br>
Regards <br><span class="HOEnZb"><font color="#888888">
Jens<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<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><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.</div><div><br></div><div>There we have the salad.</div></div></div>
</div>