support log scale in addition to linear scale for calculating heatmap colors