05-19-2026 09:23 AM
Hello,
I am trying to figure out how to add color to a 3D Line Graph whose colormap mode is "Absolute". In my vector of colors "Color vector", I only store the value 30, whic according to my colormap "Surface Color Map", should correspond to the green color and give me a green line on my 3D Line Graph. However, I get a line whose color change at each iteration of the while loop. Can someone explain me what is going on and how to have the values of the color vector matching those of the colormap ? (I can't use the "Relative Mode" while adding an element for the minimum and one for the maximum I want for my color, because it would create outliers on the plot)
Best regards !
Blahodatne
05-19-2026 11:07 AM
You probably want to fix some serious code problems first.
05-20-2026 02:27 AM
Hello,
Thanks for your corrections and excuse me for the mistakes (that can seem trivial,I am new to Labview).
Here is an updated version of my VI, hopefully with all the structural LabVIEW incoherences corrected, but with the same problem diagnosed.
Best regards,
Blahodatne
05-20-2026 04:51 AM
The "color vector" is an index into the colour map. You were giving it a value of 30 each time, which corresponds to black in your colour map.
If you leave colour vector completely disconnected I believe it operates based on the Z value by default which will give you the same output as below (which is still operating on Z since X=Y=Z="color vector" in this example).
05-20-2026 07:20 AM
Hello deceased,
Thanks for your answer. I tried to let the colour vector disconnected and it worked exactly as you predicted : the colour was following the values of the Z vector.
However, when I put a constant value in the color vector and connect it to the 3D graph, I have get a line whose color varies from black to purple then to blue and to green, with a color that seems to corresponds to two times the last value in the Z vector.
On top for 200 iterations,
On top for 400 iterations,
and on top for 1200 iterations.
I am also using Labview 20.0.1, maybe it is playing a role in what is happening ?
Best regards,
Blahodatne