Type shift-enter to execute the code below


In [6]:
%pylab inline

N = 200

r = 2 * rand(N)
theta = 2 * pi * rand(N)
area = 200 * r ** 2 * rand(N)

ax = plt.subplot(111, polar=True)

scatter(theta, r, c=theta, s=area, alpha=0.75)


Populating the interactive namespace from numpy and matplotlib
Out[6]:
<matplotlib.collections.PathCollection at 0x7f9c00631b38>