Heat Maps with Text
Version 1.1.0.1 (46.5 KB) by
Robert Henson
Heat maps with numeric values overlayed
Editor's Note: This was a File Exchange Pick of the Week
A number of people have asked me whether MATLAB can add text to heatmaps to show the exact values. This is very easy to do, however, making a the text robust to resizing, zooming and other operations is a little trickier.
This example shows how to add text to the heatmap and also includes an M-file that shows how to handle zooming and resizing.
Cite As
Robert Henson (2026). Heat Maps with Text (https://uk.mathworks.com/matlabcentral/fileexchange/15877-heat-maps-with-text), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Labels and Styling > Color and Styling > Green >
Find more on Green in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: scattertext
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
