title: Generating points on a circle
body: <pre><code>import random
  import math
  import matplotlib.pyplot as plt
  
  
  def circle():
      x = []
      y = []
      for i in range(0,1000):
          angle = random.uniform(0,1)*(math.pi*2)
          x.append(math.cos(angle));
          y.append(math.sin(angle));
      plt.scatter(x,y)
      plt.show()
  circle()
  </code></pre>
  
  <p>I've written the above code to draw 1000 points randomly on a unit circle. However, when I run this code, it draws an oval for some reason. Why is this?</p>
  
  <p><a href="https://i.stack.imgur.com/vxsbK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vxsbK.png" alt="enter image description here"></a></p>