11-07-2012 10:29 AM
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.
11-07-2012 11:21 AM
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.
11-07-2012 12:41 PM
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?
11-07-2012 12:51 PM
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.
11-07-2012 01:10 PM
Please attach your draft VI shown in the image above, containing your default data in the controls (make current values the default before saving).
11-07-2012 01:13 PM
Here it is.
11-07-2012 01:27 PM - edited 11-07-2012 01:27 PM