title: Creating a Confidence Ellipses in a sccatterplot using matplotlib
body: <p>How to creating a Confidence Ellipses in a sccatterplot using matplotlib?</p>
  
  <p>The following code works until creating scatter plot. Then, does anyone familiar with putting 
  Confidence Ellipses over the scatter plot?</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  x = [5,7,11,15,16,17,18]
  y = [8, 5, 8, 9, 17, 18, 25]
  
  plt.scatter(x,y)
  plt.show()
  </code></pre>
  
  <p>Following is the reference for Confidence Ellipses from SAS.</p>
  
  <p><a href="http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#a003160800.htm" rel="noreferrer">http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#a003160800.htm</a></p>
  
  <p>The code in sas is like this:</p>
  
  <pre><code>proc sgscatter data=sashelp.iris(where=(species="Versicolor"));
    title "Versicolor Length and Width";
    compare y=(sepalwidth petalwidth)
            x=(sepallength petallength)
            / reg ellipse=(type=mean) spacing=4;
  run;
  </code></pre>