https://stackoverflow.com/questions/5283649/plot-smooth-line-with-pyplot

#+BEGIN_SRC ipython :session tests :file spline.png :exports both
  %matplotlib inline
  import matplotlib.pyplot as plt
  import numpy as np
  import pandas as pd
  T = np.array([6, 7, 8, 9, 10, 11, 12])
  power = np.array([1.53E+03, 5.92E+02, 2.04E+02, 7.24E+01, 2.72E+01, 1.10E+01, 4.70E+00])

  plt.plot(T,power)
  plt.show()
#+END_SRC

#+RESULTS:
[[file:spline.png]]

#+BEGIN_SRC ipython :session tests :file spline2.png  :exports both
from scipy.interpolate import spline

xnew = np.linspace(T.min(),T.max(),300) #300 represents number of points to make between T.min and T.max

power_smooth = spline(T,power,xnew)

plt.plot(xnew,power_smooth)
plt.show()



#+end_src

#+RESULTS:
[[file:spline2.png]]
