title: Plotting contours from data csv
body: <p>I have data within a csv file with Temperature, x, y and z points arranged in columns. The z points can be negated as it remains 0 through my data acquisition. </p>
  
  <p>I'd like to simply obtain a contour plot of this data. </p>
  
  <p>My problem is essentially the same as <a href="https://stackoverflow.com/questions/19905792/generating-contour-plots-for-x-y-data-in-python">this</a> but it got redirected to other threads where I still couldn't figure out what was going on.</p>
  
  <p>Edit: Here's my unfinished code which should open the data? I don't know where to go from here.</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  from matplotlib.mlab import griddata
  
  import csv
  
  data = np.genfromtxt('tempcontour0.csv', delimiter=',', dtype=[('t',float),('x',float),('y',float),('z',float)],usecols=(0,1,2))
  
  T=data['t']
  X=data['x']
  Y=data['y']
  
  z = np.zeros((len(X),2))
  z[:,0] = X
  z[:,1] = Y
  
  plt.contour()
  plt.show()
  </code></pre>
  
  <p>The data file is like so: </p>
  
  <pre><code>T,x,y,z
  316.002,0,0,0
  309.314,0.00839113,0,0
  309.67,0.0172418,0,0
  310.34,0.0265772,0,0
  310.903,0.0364239,0,0
  311.558,0.0468098,0,0
  312.704,0.0577645,0,0
  313.582,0.0693192,0,0
  314.582,0.0815067,0,0
  316.2,0.0943616,0,0
  317.391,0.107921,0,0
  318.93,0.122222,0,0
  322.662,0.137307,0,0
  325.549,0.153218,0,0
  339.193,0.17,0,0
  338.943,0,0.0208333,0
  341.134,0.00839113,0.0208333,0
  341.692,0.0172418,0.0208333,0
  </code></pre>