- Plot the heatmap
- Add axes over the heatmap
- Plot lines on the axes
- Set the background color of the axes to 'none'
- Adjust the axes size to fit to the heatmap

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!