01-08-2014 06:24 AM
Hello all,
I'm trying to figure out how create a 2D temperature map like you can get in Excel by using a surface charts & contour :
Here is an example
Do you have any idea about how to do that ???
Thanks in advance !
01-08-2014 06:31 AM
You are looking for the "Intensity Graph".
Norbert
01-08-2014 06:49 AM
Thanks Norbert for your answer.
It seems that it's not completly the thing I need. In fact, if I understand correctly, Intensity graph is used to get one value => one colour.
On my example, you can see that one value correspond to a "corner" and between each corner the colour can change.
I hope i'm clear
Kriss00
01-08-2014 08:16 AM
01-08-2014 09:11 AM
I assume that the numbers do result in the graph. Given that, Excel uses a horrible interpolation algorithm which interpolates the outer values with virtual values outside the array, most likely 0 (essentially pressing down the values of the outer rim of the array!).
That being said, you will not see the exact image using the Intensity Graph even if you create a nice color map matching that of Excel:
In order to see a similar image in the Intensity Graph to the Excel graph, you have to programmatically interpolate the values just the way as Excel does. Most likely, the Excel interpolation also increases the number of values (maybe by factor of 100 or more) to generate a less "pixelated" image.
The only thing the Intensity Graph truely cannot provide are the contour lines. So if you look primarily for them, alex' suggestion is the better one.
Norbert
01-08-2014 10:54 AM
Thanks all for your propositions.
I have worked on the one of Norbert. You can find in attchement the VI about that.
I have still an issue about the fact that I need to rotate the graph. 1/4 to the right. I don't understand why because the array is correct to me...
0 0 2 => 1 0 0
0 0 0 0 0 0
1 0 0 0 0 2
01-08-2014 11:15 AM
@kriss00 wrote:
Thanks all for your propositions.
I have worked on the one of Norbert. You can find in attchement the VI about that.
I have still an issue about the fact that I need to rotate the graph. 1/4 to the right. I don't understand why because the array is correct to me...
0 0 2 => 1 0 0
0 0 0 0 0 0
1 0 0 0 0 2
I would delete the second "Transpose 2d Array".
Then invert the y-axis via right click on intensity graph>properties>scales>drop down menue> Fréquence (y-axis)
Before
After
Finally you can switch the x-axis from the bottom to the top via right click on x-axis > switch sides
Regards,
Alex
01-09-2014 04:37 AM
Thanks, now it's perfect.
Kriss00