title: Plotting Pi using Monte Carlo Method
body: <p>I can evaluate the  value of pi  using  different  data points  by Python. But for each repeat I want to plot the scatter  plot  like this: 
  <a href="https://i.stack.imgur.com/8R3ce.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8R3ce.png" alt="enter image description here"></a></p>
  
  <p>My python code for finding pi using monte carlo method is : </p>
  
  <pre><code>from random import *
  from math import sqrt
  inside=0
  n=10**6
  for i in range(0,n):
      x=random()
      y=random()
      if sqrt(x*x+y*y)&lt;=1:
          inside+=1
  pi=4*inside/n
  print (pi)
  </code></pre>