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