title: Python: Get values of array which correspond to contour lines
body: <p>Is there a way to extract the data from an array, which corresponds to a line of a contourplot in python? I.e. I have the following code:</p>
  
  <pre><code>n = 100
  x, y = np.mgrid[0:1:n*1j, 0:1:n*1j]
  
  plt.contour(x,y,values)
  </code></pre>
  
  <p>where values is a 2d array with data (I stored the data in a file but it seems not to be possible to upload it here). The picture below shows the corresponding contourplot. My question is, if it is possible to get exactly the data from values, which corresponds e.g. to the left contourline in the plot?</p>
  
  <p><a href="https://i.stack.imgur.com/Gxx05.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gxx05.png" alt="enter image description here"></a></p>