Output heatmaps in file