colorbrewer-based palette selection for heat map, fixed bug when rendering legend in heat map