Changing heatmap spectrum Displaying a heatmap The following code shows a simple example of creating a heatmap.