linear functions kind of work

but theyre slightly off
i think its working i cant tell
fixed linear fit button
pretty sure linear functions print properly now