LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Some Plot Colours Colors in 3d plot

Hi, i'm plotting a 3d graph with a set sphere, but i would like to set all the vectors [see attatchment lv 8.2] to the same colour, without colour shading, and set the sphere colours.

These are availible through the 3d properties bar, but this is inconvient for large amounts of vectors.

I've had a good look through 3d properties but i can't see the colour set for anything except the background, which i've placed into the programme, and the graph bars.

Help! - if its possible!!

 

VI attatched!!

0 Kudos
Message 1 of 7
(3,113 Views)

I believe if you just set the ColorMapStyle to "None" it should do what you want. For example (inside your for-loop):

 

 

Message Edited by smercurio_fc on 08-15-2008 05:12 PM
0 Kudos
Message 2 of 7
(3,100 Views)

Fantastic, on a related question, how is the colour determined on the property node on:

 

linecolor &

pointcolor?

 

if i create a constant it gives me a number, and it seems to follow the general pixel definition for 0 to255, but it will only shade through the reds, how can you make it shade through the greens and blues as well to get different colours?? - image attatched.

 

chears.

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

What you wrote makes sense since CW cololrs are BGR instead of RGB (one byte for each). Take alook at the code I posted in this thread.

 

This is how I set the line color.

 

 

 

Ben

Message Edited by Ben on 08-18-2008 05:44 AM
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,064 Views)

That looks hopeful, have you got the code, or the part with this in, i looked through the page you linked to but i couldn't see a VI.

I ask mainly because i don't know what goes on inside your sub-vis at the end.

chears.

0 Kudos
Message 5 of 7
(3,056 Views)

Take a closer look. All of the code is there.

 

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,054 Views)

ahh found it, it was .zip, i was looking for .vi

my bad, thank you for your help!

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