05-15-2012 04:39 PM
I'd like to display some data using a heat map format, something like this:
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.
05-16-2012 12:28 AM - edited 05-16-2012 12:30 AM
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
05-16-2012 08:23 AM - edited 05-16-2012 08:24 AM
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
05-17-2012 05:52 PM
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,