Add logscale and fix padding size according to data max