added code and tests for tickpadding and ticksize