working out linear regression graphing from go