Accounting for tick label formats in margin calculations.