ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot a xyz-points 3D-graph with different colours?

Solved!
Go to solution

Dear all,

 

I tried to plot xyz points from an csv-file as 3D graph. The basic VI works as intended.

 

Now I want to add an additonal feature to the VI. This new feature should display, depending on the measurement result from the csv-file, if a xyz-point is valid (=green point) or out of threshold (=red point).

 

Reading the measurement result of each point works fine, but I can only change the colour of all xyz-points in my 3D graph and not just a single xyz-point. So either all green or all red.

 

Has anyone a clue how to get the wanted result?

 

note: I attached the xyz-coordinate csv-file but not the results column.

 

Plot_3D_Graph.png

Download All
0 Kudos
Message 1 of 3
(1,930 Views)
Solution
Accepted by Evermax

If you use a scatter plot, you can make 2 separate plots and color them red and green. You can probably do it with a line plot too, but I didn't mess around enough.

 

Capture.PNG

Message 2 of 3
(1,891 Views)

Thank you for the hint!

 

I will try to make 3 separate plots, one for the red points, one for the green points and one to plot the lines between.

0 Kudos
Message 3 of 3
(1,853 Views)