Skip to content

Instantly share code, notes, and snippets.

@habi
Created November 26, 2014 15:58
Show Gist options
  • Save habi/0c56c699f41b99bed840 to your computer and use it in GitHub Desktop.
Save habi/0c56c699f41b99bed840 to your computer and use it in GitHub Desktop.
Plot a bunch of random dots in a square.
"""
Plot 1000 random dots in a square
"""
import random
import matplotlib.pylab as plt
for i in range(1000):
plt.plot(random.random(), random.random(), marker='o', color='k')
plt.axis('equal')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment