help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Geometry-drawPolyline3d-object-subplot


From: Vicent
Subject: Geometry-drawPolyline3d-object-subplot
Date: Sat, 8 Dec 2018 19:11:03 -0600 (CST)

Hi everybody, I'm doing an animation of some 3dlines using subplots to
represent the 3 views and a perspective. The thing is that I'm doing it,
drawing four times the lines, one in each subplot, and it's so inefficient.
I'd like to do it only with one object drawn and the four different points
of view.

 I,ve been trying to use the object assignment ( myLine =
drawPolyline(....)) in order to use this object in each subplot but I
haven't been able to do it. when the second object is created it is placed
in the whole window instead of in his subplot space.
Thanks for your help.

Example
 clf;
 subplot(2,2,1)
 
title("FrontView");
hold on;

xlabel("X");
ylabel("Y");
zlabel("Z");
axis ([-200 200 -100 200 0 200]); 
view([0,-1,0]);
myLine = drawPolyline3d([0,0,0;40,40,40;20,50,20], 'r');

subplot(2,2,3) 

title("OverHeadView");
hold on;

xlabel("X");
ylabel("Y");
zlabel("Z");
axis ([-200 200 -100 200 0 200]); 
view(2);

myLine2 = copyobj(myLine);




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]