LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate a line in a 3D plot.

As you can see in the picture i have a cloud of point of my object. I have found the principal direction of the object thanks to the PCA. I would like to add this line in the graph but it's seem impossibile. I have the slope e and a point of the line.

 

does anyone have a suggestion?Cattura.JPG

0 Kudos
Message 1 of 8
(3,061 Views)

Please attach (a) the VI (or VIs) that produced this plot and (b) the data set that gets plotted.  I'm a little confused how you plan to plot a line in 3-D space given only two parameters (a point on the line and a "slope with respect to ???").

 

Bob Schor

0 Kudos
Message 2 of 8
(3,031 Views)

use several x,y,z cursors drawn on the 3d graph to represent the line?

0 Kudos
Message 3 of 8
(3,026 Views)

Thanks for the answer.

Ok, this is the VI. 

yes, it's only two parameters beacause i don't care for z data. i mean, i want to plot the line in plane XY. So this way a point and the slope should be enough.

The point is the mean X,Y,Z and the slope is the result of the PCA.

I would like to see that line in the same plot of the cloud of point.

 

 

0 Kudos
Message 4 of 8
(3,010 Views)

it could be a good idea, but is there a way to set the x,y,z origin from the code?

0 Kudos
Message 5 of 8
(3,009 Views)

please attach the missing sub.vi

 

before uploading,

run your main.vi, so there should be meaningful data in the array, graphs etc.

 click " Make Current Value Default" , then save.

0 Kudos
Message 6 of 8
(2,995 Views)

@DavideZ95 wrote:
it could be a good idea, but is there a way to set the x,y,z origin from the code?

 

origin in terms of what? in terms of the 3d Surface Plot?

Cattura.JPG


 

0 Kudos
Message 7 of 8
(2,986 Views)

 

so, I created my own sample data for demonstration... 

 

 

 

@DavideZ95 wrote:

 

yes, it's only two parameters beacause i don't care for z data. i mean, i want to plot the line in plane XY. So this way a point and the slope should be enough.

 

I don't think so

 


@DavideZ95 wrote:

The point is the mean X,Y,Z and the slope is the result of the PCA.

I would like to see that line in the same plot of the cloud of point.


I'd say this mean will not be in the X,Y plane as Z is very likely to be unequal to 0

what about the line points which are inside your actual 3d point cloud?

 

 

line_on_3d-surface_graph.png

 

0 Kudos
Message 8 of 8
(2,974 Views)