title: Interpolating curve with dates on the x-axis
body: <p>I've plotted a curve where the x axis is just dates using the datetime module, but I want to be able to interpolate between them. For example, I want to interpolate the value on 2017-05-05 even though I haven't put a value there. My code looks like:</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  import datetime as dt
  import matplotlib.pyplot as plt
  
  
  eudata = pd.read_csv("H:/euriborspots.csv")
  
  months = eudata.ix[:, 'Expiry']
  badspots = eudata.ix[:, 'Spot'] 
  spots = [100 -x for x in badspots]
  
  
  dates = [dt.datetime.strptime(d,'%Y-%m-%d').date() for d in months]
  datearray = np.array(dates)
  ratearray = np.array(spots)
  
  ratecurve = plt.plot(datearray, ratearray)
  </code></pre>
  
  <p>Can anyone help with this?</p>