title: Is there a way to plot a curve of best fit without function? Python
body: <p>I need to plot a smooth curve of best fit but all the methods I've found use scipy.optimize.curve_fit(), and this requires knowing the function relating x and y. Is there a simpler way to do it for basic scatter plots?</p>
  
  <p>What Im trying to get the curve for:</p>
  
  <pre><code>import matplotlib.pyplot as plot
  
  x = range(30)
  y = [1, 1, 1, 2, 1, 1, 1, 2, 4, 5, 8, 12, 13, 14, 12, 11, 9, 6, 5, 4, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1 ]
  
  plot.plot(x, y, "o")
  plot.show()
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>