title: 3D Contour plot from data using Mayavi / Python
body: <p>I would like to do a 3D contour plot using Mayavi in exactly the same way as the third figure on this page (a hydrogen electron cloud model) :</p>
  
  <p><a href="http://www.sethanil.com/python-for-reseach/5" rel="nofollow noreferrer">http://www.sethanil.com/python-for-reseach/5</a></p>
  
  <p>I have a set of data points which I created using my own model which I would like to use. The data points are stored in a multi-dimensional numpy array like so:</p>
  
  <pre><code>XYZV = [[1, 2, 3, 4],
          [6, 7, 8, 9],
          ...
          [4, 5, 6, 7]]
  </code></pre>
  
  <p>The data points are not uniformly spread in XYZ space and not stored in any particular order. I think the example uses a meshgrid to generate the data points - I have looked this up but totally don't understand it. Any help would be much appreciated?</p>
  
  <p><a href="https://i.stack.imgur.com/7y5pN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7y5pN.png" alt="H"></a><br>
  <sub>(source: <a href="http://www.sethanil.com/_/rsrc/1267943775903/python-for-reseach/5/Article5-fig3.png" rel="nofollow noreferrer">sethanil.com</a>)</sub>  </p>