Heatmap analyses legend and general plot improvements

Legend legibility and labels improved. Handling of large number of
rows/columns made more robust. Some cosmetic changes.