unify base and log in graphics.histogram