<div dir="ltr"><div dir="ltr"><div>Hi Samuel,</div><div><br></div><div><span style="color:rgb(61,133,198)">please see my answers below in blue.</span></div><div><br></div><div>Thank you,</div><div>Philipp<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 17. Feb. 2021 um 13:09 Uhr schrieb Samuel Gougeon <<a href="mailto:sgougeon@free.fr">sgougeon@free.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Philipp,<br>
<br>
Le 08/02/2021 à 21:36, P M a écrit :<br>
> Dear Users,<br>
><br>
> I have a 3D-plot.<br>
><br>
> Onto that, I would like to add a xpoly-line with the following specs:<br>
><br>
> xpoly ( [0 1], [0 0], [-0.4 -0.4], 'lines' 0)<br>
><br>
> in other words: The polyline should be at the X-Y Plane, but shifted <br>
> to Z = -0.4<br>
><br>
> I know that I can just plot the line, but that would destroy the <br>
> layout, which I would have to reconfigure.<br>
<br>
<br>
<b>What do you mean? That you don't want gca().data_bounds being updated?</b><br>
<br></blockquote><div><br></div><div><span style="color:rgb(61,133,198)">Consider a 3D-plot with following settings:</span></div><div><span style="color:rgb(61,133,198)">- view is rotated other than it's standard view.</span></div><div><span style="color:rgb(61,133,198)">- box is "off"</span></div><div><span style="color:rgb(61,133,198)">- axes are "off"</span></div><div><span style="color:rgb(61,133,198)">- labels are "off"</span></div><div><span style="color:rgb(61,133,198)"><br></span></div><div><span style="color:rgb(61,133,198)">I found that adding afterwards a new line with plot3D8X,Y,Z) would</span></div><div><span style="color:rgb(61,133,198)">- rotate everything back into standard view</span></div><div><span style="color:rgb(61,133,198)">- switch box "on" again</span></div><div><span style="color:rgb(61,133,198)">- switch axes "on" again<br></span></div><div><span style="color:rgb(61,133,198)">- switch labels "on" again</span></div><div><span style="color:rgb(61,133,198)"><br></span></div><div><span style="color:rgb(61,133,198)">So I would have to reconfigure the 3D-plot appearance .</span></div><div><span style="color:rgb(61,133,198)"><br></span></div><div><span style="color:rgb(61,133,198)">Using xpoly, xarrow, xsegs allowes to just add a line, while the original plot appearance does not change.</span></div><div><span style="color:rgb(61,133,198)">This is very comfortable.</span></div><div><span style="color:rgb(61,133,198)"></span></div><div><span style="color:rgb(61,133,198)"></span></div><div><span style="color:rgb(61,133,198)">  <br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(61,133,198)">
<span style="color:rgb(0,0,0)">><br>
> Similary to that I also would like xstring-Text in such a manner.<br></span></span><span style="color:rgb(0,0,0)">
<br>
<b>xstring(x, y, text)<br>
gce().data(3) = z_coordinate;</b><br>
<br>
</span><span style="color:rgb(61,133,198)"><span style="color:rgb(0,0,0)"><b>works.</b></span><br></span></blockquote><div><span style="color:rgb(61,133,198)"><br></span></div><div><span style="color:rgb(61,133,198)"><span style="background-color:rgb(255,255,255)">--> Thank you, I was not aware of that.</span></span></div><div><span style="color:rgb(61,133,198)"><span style="background-color:rgb(111,168,220)"><span style="background-color:rgb(255,255,255)">Since xstring has only X-Y as input I didn't check 
for gce().data(3)
</span>
</span></span></div><div><span style="color:rgb(61,133,198)"><br></span></div><div><span style="color:rgb(61,133,198)"> </span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(61,133,198)">
<span style="color:rgb(0,0,0)"><br>
><br>
> Is something like this possible?....xpoly3D() ?</span><br>
<br>
</span><br>
<b>Isn't param3d() right for that?</b></blockquote><div><br></div><div><span style="color:rgb(61,133,198)"><span style="background-color:rgb(255,255,255)">--> Yes, you are right. but still a :  gca().data_bounds    is necessary afterwards.</span></span><br></div><div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Samuel<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div></div>