LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a heat map

I'd like to display some data using a heat map format, something like this:

 

Final Heat Map

 

My data is basically X,Y coordinates.  Each coordinate pair has an amplitude value.  I want to map the amplitude value into a color gradient and plot it as a smooth graph.  I could do this manually using the Canvas control, but then each point would be graphed as a rectangle of a certian color.  The points wouldn't blend into each other (unless there's some way to blend colors on a Canvas control).  I also thought about using the 3D graph control, but I don't want an actual surface graph.  I want to use color as my thrid dimension.

 

Does anyone have any suggestions on how to do this?

 

Tony G.

0 Kudos
Message 1 of 4
(7,894 Views)

You could use PlotIntensity or PlotScaledIntensity on a XY graph; if you don't use labels and deselect 'Show border area' the XY graph has virtually the same appearance. There are also some examples, e.g. GraphZooming.cws

0 Kudos
Message 2 of 4
(7,890 Views)

I looked into PlotIntensity and PlotScaledIntensity.  The issue with them is that they excpect the X,Y data to be evenly spaced.  My data is more like a scatter plot of X,Y points with amplitudes. 

 

Tony

0 Kudos
Message 3 of 4
(7,877 Views)

Hi Tony,

 

Would blending using the canvas control be possible using the alpha channel? Check out the shipping example "alphablend.cws" for an example of this with the Canvas control. I'm not sure if this is going to be applicable to your graph, but hopefully it's useful!

 


Best,

0 Kudos
Message 4 of 4
(7,858 Views)