LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview 3D surface color map

Solved!
Go to solution

Hello,

 

I'm trying to plot a 3D graph using the 3D surface plot helper, and it works fine but the color ramp values adapt to my data. my question is: is it possible to change the color ramp values ?

 

for example i have a color ramp between -92.4 and -85.9 and i want to change it ( while the vi is running ) to something like -100 / 0.

 

thank  you in advance

0 Kudos
Message 1 of 6
(6,571 Views)

Yup  - there's a property Plot Specific.Surface.Surface Color Ramp that can be written to to change this.

 

Right click on the 3D Graph indicator (either on the front panel or block diagram) and head to Create > Property Node > Plot Specific > Surface > Surface Color Ramp, and have a play with those settings.

---
CLA
Message 2 of 6
(6,556 Views)

Thank You for your response

 

i already checked the surface color ramp property node. whilst i can change the colors, the number of colors and the index of each one, i can't to change the scal.

 

what i want to, for example, is to change the scale in the joined screen from -92.59 // -85.48 to -100 // 0.

 

is it possible ?

 

thank you

0 Kudos
Message 3 of 6
(6,546 Views)
Solution
Accepted by topic author nowever111

 Hi.

 

The answer to your question is no. You cannot change the Max and Min color ramps values, you can only add scales division, and that is because the function gives you the Max and Min values of your 3D graph.  You can see it by yourself by right clicking on the 3D surface in the front panel >> 3D Plot Properties >> Surface >> Color Ramp >> edit. Otherwise there is a way to change the X,Y,Z scale and see the part of the graph that  you want. Refer to the example below.

 

Regards

0 Kudos
Message 4 of 6
(6,510 Views)

I'm trying to run through a series of data in a surface plot to create an animation. That the color ramp is changing for each data frame defeats the purpose of the animation. It makes it look like everything is changing all the time. But where there is a will, there is a way... I figured out a workaround by using the fact that NaN coordinates won't be plotted but their Z values still account for the color ramp.

3D Surface Plot - Color Ramp.png

Message 5 of 6
(4,772 Views)

sweet!

0 Kudos
Message 6 of 6
(603 Views)