added logscale support