キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Intensity Plot

Hi,

 

 I am having a problem with Intensity plot.  I have two ID arrays (X and Y values) and a 2D matrix (Z). If I plot Z in intensity plot, obviously it shows the x and y axis as the 2D array index.

 

What I want to do is plot the 2D data with respect to the two 1D arrays as coordinate.

To illustrate, (X(1),Y(1)) coordinate has intensity Z(1,1). (X(1),Y(2)) coordinate has intensity Z(1,2) and so on.

 

I would like to do it using intensity plot rather than using the 3d surface plot VI-s.

 

Can anyone please help?

 

I have attached a fig to illustrate the problem.

すべてをダウンロード
0 件の賞賛
メッセージ1/7
3,628件の閲覧回数

You can set axes scales and offsets to map the integer values to actual coordinates.  You may need to set the axis display format to show more digits of precision as well.

 

At first you can set these using the properties dialog, then you can automate it using property nodes.

0 件の賞賛
メッセージ2/7
3,617件の閲覧回数

Your x and y arrays are not sorted and linear, so I am not quite sure what you are trying to display. An intensity graph would need a bit more code for a reasonable result.

 

Maybe you should initialize a 2D array of sufficient size and then map the current 2D data into it using replace array subset. How do you want to deal with gaps?

0 件の賞賛
メッセージ3/7
3,610件の閲覧回数

Hi altenbach,

 

 For the gaps, they should have some value less than the minimum of the Z values. I know that with just 25 points it might look bad but for the real case, I should have more points.

 

0 件の賞賛
メッセージ4/7
3,607件の閲覧回数

Please attach your draft VI shown in the image above, containing your default data in the controls (make current values the default before saving).

0 件の賞賛
メッセージ5/7
3,602件の閲覧回数
0 件の賞賛
メッセージ6/7
3,600件の閲覧回数

Try this.... Modify as needed.

 

 

すべてをダウンロード
0 件の賞賛
メッセージ7/7
3,595件の閲覧回数