10-11-2016 04:39 AM - edited 10-11-2016 05:03 AM
Hello,
I have a list of points with (x,y,z) and T. I would like to plot these points in a 3D graph but also to give a colour to this points according to the value of the value of T. I would like to fill the space between this points with acolours gradient (I mean between two points with low and high value of T, it will be a gradient between red and blue for instance).
I am planning to run this plot in a loop, so I can see the change of the temperature inside a volume of cube following a grid of points if I make vertical or horizontal cut in the middle of cube).
This is very similar to follow the change of the temperature inside the sun for example.
Cheers,
Zied
10-11-2016 05:03 AM - edited 10-11-2016 05:04 AM
Hi,
I hope this will answer your question.
You can add the 3D Surface Plot, go to the Properties and select Interpolated Shading Color Mode in Properties:
I've attached also a simple example. The surface looks terrible because the data is randomly chosen, but you can extract the general idea from it 🙂
Marcin
10-11-2016 05:08 AM
Thank you Mtwar. I will have a look at your VI after I update my Labview. Ihaveverrsion 2015 and I think you are already in labview2016.
I am still wondering whether it is possible to make cuts to the graph to see what it is inside. I will try to do just until have the point for the different directions to see if I can see something inside.
Thank you again.
Zied
10-12-2016 01:11 PM
Hello, I tested the previous Vi but it asks only for the (x,y,z). I have already a list of these positions but I would like to attribute a colour for each point and then fill the space between the point. I put the previous vi with my actual data. Do you know how to specify the colour for each point according to a list of scores( I have 1 D array that corresponds to the number of points to be drawn).
10-13-2016 03:05 AM
I've tried to do what you need, but I don't have any idea how to accomplish it
I will try to find something useful this weekend, when I'll have some more time. If you will do it earlier, let me know, I'm really curious about the answer.
10-13-2016 02:19 PM
Hello,
I will wait for your attempt.
I found a graph that is similar to what we are trying to do.
http://www.graphnow.com/Image/4d_slice5-large.jpg
Cheers,
Zied
10-14-2016 09:20 AM - edited 10-14-2016 09:35 AM
Hello,
unfortunately I was unable to find a solution 😕 I'm sure it is possible but currently I'm extremely busy and I think the solution is not so simple and demands a lot of work.
I hope you will be able to find an answer.
What I can recommend you is a post here:
http://forums.ni.com/t5/LabVIEW/3D-graph-to-plot-surface-data/m-p/880161#M398111
Another member of the Forum (Ben) has sent it to me. Maybe there you can find an answer for your question? Analyze the example which is attached to that post.
Marcin
10-14-2016 02:31 PM
Thank Mtwar for the link. I will keep trying to find a solution and hopefully someone in the forum will come up with a nice idea to help me to plot this kind of graph
10-19-2016 09:24 AM
Hi,
See the attached file, I think this is the basic idea of what you need - probably you will need to adjust it to your need but hopefully it will help you to take the right direction 🙂
Marcin
10-20-2016 04:37 AM
Thank you Marcin.
I tried your VI and I found that the colours can be entered through a matrix which is great.
Here is my VI. I think I cannot plot it because of a problem in the matrices that I could understand.
Cheers,
Zied