title: Create heatmap using pandas TimeSeries
body: <p>I need to create MatplotLib heatmap (pcolormesh) using Pandas DataFrame TimeSeries column (df_all.ts) as my X-axis.</p>
  
  <p>How to convert Pandas TimeSeries column to something which can be used as X-axis in  np.meshgrid(x, y) function to create heatmap? The workaround is to create Matplotlib drange using same parameters as in pandas column, but is there a simple way?</p>
  
  <pre><code>x = pd.date_range(df_all.ts.min(),df_all.ts.max(),freq='H')
  xt = mdates.drange(df_all.ts.min(), df_all.ts.max(), dt.timedelta(hours=1))
  y = arange(ylen)
  X,Y = np.meshgrid(xt, y)
  </code></pre>