title: How to create a surface or 3D Gaussian plot of such?
body: <p>I want to create a surface graph or mesh of the following 2D plots of binary class data. The first graph is a simple representation of one binary class data. The second 2D graph, we see red and black circles around points. Red means source dataset and black means target dataset. How can I create surface graph of X1,X2,P(Y)? The "Z' coordinate being P(Y) of the instance. Basically, I want these points to create peaks such as in a surface graph. I tried <code>surf</code> and <code>mesh</code> but I am not doing it properly since Z must be a function of X and Y. If you have suggestions of making such graph in R or Python feel free to do so. I want the result to be similar to graph 3.</p>
  
  <p><strong>Graph 1</strong></p>
  
  <p><a href="https://i.stack.imgur.com/6l7gK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6l7gK.png" alt="enter image description here"></a></p>
  
  <p><strong>Graph 2</strong></p>
  
  <p><a href="https://i.stack.imgur.com/fE4db.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fE4db.png" alt="enter image description here"></a></p>
  
  <p><strong>Graph 3 Target Result</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Y6U0k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y6U0k.png" alt="enter image description here"></a></p>