title: Python - using pcolor with panda dataframes
body: <p>I have a dataframe of 4397L, 39L that looks like this:</p>
  
  <pre><code>timestamp             0    1    2    3    4    5    6    7    8    9  ...   \                                                            
  2013-04-17 05:00:00   46   46   46   45   45   45   45   45   45   45 ...    
  2013-04-17 05:10:00   46   46   45   45   45   45   45   45   45   45 ...    
  2013-04-17 05:20:00   45   46   45   45   45   45   45   45   45   45 ...    
  2013-04-17 05:30:00   45   46   45   45   45   45   45   45   45   45 ...
  </code></pre>
  
  <p>and when I plot a pcolor using:</p>
  
  <pre><code>ax.pcolor(df) 
  </code></pre>
  
  <p>a plot is produced of the data. </p>
  
  <p>I however would like the time (df.index) to be labeled along the x axis and the y axis to be labelled with a new vector x:</p>
  
  <pre><code>[-13.73038435 -12.73038435 -12.73038435 -11.73038435 -11.73038435
   -10.73038435 -10.73038435  -9.73038435  -9.73038435  -8.73038435
    -8.73038435  -7.73038435  -7.73038435  -6.73038435  -6.73038435
    -5.73038435  -5.73038435  -4.73038435  -4.73038435  -3.73038435
    -3.73038435  -2.73038435  -2.73038435  -1.73038435  -1.73038435
    -0.73038435  -0.73038435   0.26961565   0.26961565   1.26961565
     1.26961565   2.26961565   2.26961565   3.26961565   3.26961565
     4.26961565   4.26961565   5.26961565   5.26961565]
  </code></pre>
  
  <p>In matlab it would simply be the case of:</p>
  
  <pre><code>ax.pcolor(df.index, x, df.transpose())
  </code></pre>
  
  <p>the sizes are:</p>
  
  <pre><code>df = (4397, 39)
  x = (, 39L)
  df.index = (4397L,)
  </code></pre>
  
  <p>However this same logic does not work in Python. The error given is:</p>
  
  <pre><code>AttributeError: 'DatetimeIndex' object has no attribute 'reshape'
  </code></pre>
  
  <p>Any ideas? </p>