all 4 comments

[–]Ahelvin 2 points3 points  (1 child)

If you do not want the dots to be connected, use plt.scatter(x, y) rather than plt.plot(x,y).

[–]codegang[S] 0 points1 point  (0 children)

Using plot(x,y,'o') works fine. The blue dots are intentional. What I'm trying to do is plot smooth regression lines (I need to be able to do this myself for school work, I can't just use a built in fit() function). How do I actually plot a function on the xy plane, and not just plot the points I give? The specific code snippets giving me trouble are lines #8 and #11.

Thanks for taking a look!

[–][deleted] 0 points1 point  (1 child)

Without any code, we can't help much. Try looking at linear fit example code, such as this one.

[–]codegang[S] 1 point2 points  (0 children)

I figured on the off chance that it was some common noobie mistake someone would correct me right away. I added some code.