Code covered by the BSD License  

Highlights from
Customizable Heat Maps

5.0

5.0 | 1 rating Rate this file 125 Downloads (last 30 days) File Size: 423.88 KB File ID: #24253
image thumbnail

Customizable Heat Maps

by Ameya Deoras

 

24 May 2009 (Updated 21 Dec 2011)

Visualize data as a heatmap with many customizable options.

| Watch this File

File Information
Description

HEATMAP displays a matrix as an image whose color intensities reflect the magnitude of its values. In addition, it enables you to specify the following properties:

* X- and Y-axes tick labels:
Display the row/column indices or any other numeric or text labels. X-axis tick labels can even be rotated.

* Text labels:
Overlay the heatmap image with formatted text labels. The text labels can be derived from the original numeric matrix or a different matrix or cell array for displaying another dimension of data. You can control the font size and font color of the labels. The labels update automatically with zooming, panning or resizing the figure.

* Custom color maps:
Use MATLAB's default color maps or specify your own. The function provides two additional color maps - "money" (shown in the example image) and "red" (a color map of red color intensities). Specify Linear or Logarithmic color maps and the number of color levels. You can even use different color maps for different heat maps within a figure.

* Other configurable parameters such as grid lines, color bars.

For detailed examples, see the associated document heatmap_examples.m

NOTE: If using rotated tick labels, HEATMAP will resize the axes to make room for the tick labels. When overwriting existing heatmap plots with a new heatmap, use CLF to first clear the figure. See heatmap_examples for an illustration.

Acknowledgements
This submission has inspired the following:
An Introduction to Dataset Arrays, An Introduction to Dataset Arrays
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
15 Feb 2010 Gareth Thomas

Very nice:) I found it very useful

29 Dec 2011 Syed Abbas

Great! Very helpful

Please login to add a comment or rating.
Updates
21 Dec 2011

Major update. New features include:
* Text labels correctly update when figure is zoomed, panned or resized
* X tick labels can be rotated
* Show all or a subset of tick labels for large matrices

Tag Activity for this File
Tag Applied By Date/Time
visualization Ameya Deoras 02 Jun 2009 13:50:52
heat map Ameya Deoras 02 Jun 2009 13:50:52
color map Ameya Deoras 02 Jun 2009 13:50:52
heat map Bradley 26 Oct 2011 12:49:37
heatmap Ameya Deoras 06 Jan 2012 16:16:20

Contact us at files@mathworks.com