Use double rather than float when appropriate to improve precision of heatmaps