取消
显示结果 
搜索替代 
您的意思是: 

How to Plot a 3D graph using 2D array?

program.png

 

This is my program, I had sceenshot few days ago. If it is too small, right click -> view image and zoom.

0 项奖励
11 条消息(共 22 条)
3,606 次查看

See also this thread where similar questions are being asked.

 

It took about two minutes to extract the data and make this plot, after the data was posted here.  I took me several hours to get to this point in the other thread.

 

Now, what do you want to find in this data?

 

Lynn

 

Intensity.png

12 条消息(共 22 条)
3,600 次查看

Hi Johnsold,

 

In this thread, I want to plot a 3D graph using the data I currently have but in another thread I am trying to find ways to shorten the time needed to acquire the data or perhaps find a pattern.

0 项奖励
13 条消息(共 22 条)
3,594 次查看

Hi Ben,

 

I look thrugh your car example and can start to understand abit.

Please advice me, I am not really sure am I doing it right. The attached vi is what I attempted, it is edited from yur car.vi. The expected result in my mind and what I actually want is a colum 0 and column 1 as the surface and column 2 as a "mountain". I am having problem with the z matrix(I am not sure how to get it). Thanks!!!

0 项奖励
14 条消息(共 22 条)
3,580 次查看

Hi Ben,

 

Please advice me. This is labview version 8.0.

0 项奖励
15 条消息(共 22 条)
3,570 次查看

Go back to the Parametric plot as shown in the Car example.

 

Play around with the contant values I defined until you understand how each value works.

 

What you should come to find is the surface is plotted as if it is a mesh where the intersection of the mesh are defined by "triplets" (X,Y,Z) where the X values come from the 2d X array the 2d Y array and the 2d Z array.

 

Note: You can leave the W vector unwired and the graph will render the color based on the Z values.

 

You should then look at each of the points in your 2d data as if they are the "Z" array. You then should develop code that will produce teh X and Y arrays you need.

 

So after you understand what the 3D graph needs then write code to give it what it wants. So the challenge before you is to learn how to develop two 2D arrays that will define the X and Y cordinates of your data.

 

I suspect this is dirt simple once YOU learn how to produce the required arrays.

 

I try to teach pepole to fish so that they can feed themselves.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 项奖励
16 条消息(共 22 条)
3,566 次查看

Hi Ben,

 

can you take a look at the image did I get the value XYZ correctly? This is just a portion of it

3-d_Surfacep.png

0 项奖励
17 条消息(共 22 条)
3,556 次查看

Hi Ben,

 

This is my 3D graph from different angle.

2.png

 

3.png

1.png

Can you advice me why when I use the3D Parametric Surface.vi I can get the 3D graph.

program1.png

However, when I put the array in the car example's vi exactly the same code only put in my 2D array for X,Y & Z, it display:

5.png

18 条消息(共 22 条)
3,536 次查看

Not off hand.

 

Those graphs look nice.

 

See you did not need me after all.

 

Good job!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 项奖励
19 条消息(共 22 条)
3,531 次查看

Hi Ben,

 

There is something that I like to clarrify with you, the 3D Surface graph and 3D  Parametric graph is the same? It is just how you input your X & Y in 1D array form in Surface graph while Parametric graph is how you input your X & Y in 2D array afform.

0 项奖励
20 条消息(共 22 条)
3,525 次查看