added logscale x option