Copied graphing script changes from EfficientYield.