my code looks something like this:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
for x in np.arange(0,100,5):
plt.scatter(x, x**2, c="blue", marker="o",s=1)
plt.legend()
plt.xlabel("$x$", fontsize=16)
plt.ylabel("$f(x)$", fontsize=16)
plt.show()
which gives me the attached picture:
How can I connect the points with lines, or even more preferably, a smooth curve?
Thanks for your help in advance!