scatter plot in python stack overflow code example Example: scatter plot in python stack overflow plt.scatter(x,y) x = sorted(x) plt.plot(x,p(x),"r--")