move html formulas to PHScaleConstants to avoid duplication
fix x-spacing of log graph indicators, broken when major ticks were made longer