Updated linear and log scaling scripts for multiple phases