03-30-2020 09:12 AM
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?
03-30-2020 11:55 AM
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
03-30-2020 01:39 PM
use several x,y,z cursors drawn on the 3d graph to represent the line?
03-31-2020 01:29 AM
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.
03-31-2020 01:34 AM
it could be a good idea, but is there a way to set the x,y,z origin from the code?
03-31-2020 06:11 AM
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.
03-31-2020 10:54 AM
@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?
03-31-2020 04:37 PM - edited 03-31-2020 04:40 PM
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?