Skip to content

Commit

Permalink
Merge pull request #2494 from ugurthemaster/master
Browse files Browse the repository at this point in the history
Update scatter_demo.py
  • Loading branch information
dmcdougall committed Oct 4, 2013
2 parents d1cb803 + c35781e commit fc6a048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/shapes_and_collections/scatter_demo.py
Expand Up @@ -8,7 +8,8 @@
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radiuses

plt.scatter(x, y, s=area, alpha=0.5)
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.show()

0 comments on commit fc6a048

Please sign in to comment.