ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Discrete heat maps
Posted by Naveen on Oct-28-2016 22:51
Is there a way to generate discrete heatmaps? Something like:

https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/24253/versions/7/screenshot.jpg

I want each grid element to be a flat color and no interpolation at the edges.

Thanks.

  Re: Discrete heat maps
Posted by Peter Kwan on Oct-29-2016 02:37
Hi Naveen,

An example can be found at:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1455309854#N1455566573

Hope this can help.

Regards
Peter Kwan

  Re: Discrete heat maps
Posted by Naveen on Oct-29-2016 03:27
Hi Peter,

I did see that approach, but it requires that each cell have the same width and height dimensions. Also, if I'm going to add a layer per cell (to address different colors), I might as well use DrawArea's rect call.

Thanks.

  Re: Discrete heat maps
Posted by Naveen on Oct-29-2016 21:33
Attachments:
DrawArea works fine for this approach.
heatmap.png

  Re: Discrete heat maps
Posted by Peter Kwan on Oct-31-2016 04:21
Hi Naveen,

The scatter layer can actually draw rectangular symbols. You are correct that using the DrawArea is more efficient.

(There is in fact a more complicated example using DrawArea which shows a rotated wafer with thousands of cells and with tooltips, but it does not match your case closely so I did not suggested it in my last message:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1340610047#N1340657839
)

Regards
Peter Kwan