title: using matplotlib to plot 4D fitted-surface
body: <p>I'm working with a data structure analogus to:</p>
  
  <pre><code>x = [1.6,1.9,2.6,2.8,3.1,3.6,1.4,2.7]
  y = [98.2,165.2,174.3,109.5,132.5,162.4,95.3,98.5]
  z = [100.2,121.5,173.5,89.9,154.7,127.4,147.2,155.9]
  m = [-0.2,-1.4,0.3,3.1,-4.2,-2.6,1.7,-1.9] 
  </code></pre>
  
  <p>Here, <code>x,y,z</code> are all independently variable and may be represented as <code>m=f(x,y,z)</code><br>
  I'm trying to achieve a 4D surface plot(fitted to a polynomial aiming to generate an equation), with <code>m</code> representing the color gradient of the 3D surface.<br>
  Although a very nice example(representing <code>z=f(x,y)</code>) is provided: <a href="https://stackoverflow.com/a/18648210/97160">https://stackoverflow.com/a/18648210/97160</a>. </p>
  
  <p>But I'm getting nowhere on how perform such operation with matplotlib in 4D, where <code>m=f(x.y,z)</code>.</p>
  
  <p>A little help or suggestions regarding this concern would be highly appreciated.</p>