LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot with one color instead of cwColorSpectrum

Solved!
Go to solution

I use the Tubular LIne .VI to plot the deplacement of a person with GPS in a 3D graph.  Now, I will like to plot this tube with only one color and no shade that I could select to represent and differentiate each person.  I can not find how to do it with this VI.  Is someone can help?  Thank you

 

I tried every Property Node to replace ColorMapStyle with LineColor, PointColor and connecting numeric control...does not work!

 

BTW, what is the meaning of cw... in cwColorSpectrum?

 

I attached the Tubular Line VI.

Message Edited by fmethot on 02-12-2010 02:47 PM
0 Kudos
Message 1 of 7
(3,748 Views)

"cw" is Component Works.

 

I think you want to set your ColorMapStyle to "cwNone"

 

 

 

See this thread for another thread on using the CW 3d graph.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 7
(3,740 Views)

I did this (attached) and it does not work...the trace is black no matter the number.  The line width seems to work.

I might need this VI between the control and the LineColor...which I don't know where to find it in LabVIEW 2009.

 

Could you tell me where to find this VI?

...while, I am reading about cw 3D graph...from other tread.

 

Thank you

0 Kudos
Message 3 of 7
(3,718 Views)

 

Copy n paste it.

 

I'm not sure where that one lives. i seldom use it.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(3,704 Views)

I don't understand your reply.

 

I modified the Tubular Line VI to remove (or try to remove and have choice of fix color without shade) the ColorSpectrum.  I looked at your clip and I set ColorMapStyle to none, connected a control on LineWidth and the LineColor.  Then I attached a clip to show what I did .  It does not work.  If I look at your VI, you insert something between the control and the LineColor node (just outside the FOR loop); what is it?  I suppose that it does not work because of that VI...

 

Thank you

 

FM

0 Kudos
Message 5 of 7
(3,698 Views)
Solution
Accepted by topic author fmethot

In that thread is the code illustrated. Download it and have fun. Smiley Wink

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 7
(3,688 Views)

You put me in the right direction.  I was OK at the beginning, my mistake was I did not try number greater than 20 and I realyzed that there is millions of colors...I should had tried bigger number.

 

I use some code in your VI to provide a nice interface for choosing each color.

 

Thank you

Message 7 of 7
(3,675 Views)