Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 674f927

Browse files
committed
added polar scatter example
svn path=/trunk/matplotlib/; revision=611
1 parent 813e086 commit 674f927

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

examples/polar_scatter.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python
2+
# a polar scatter plot; size increases radially in this example and
3+
# color increases with angle (just to verify the symbols are being
4+
# scattered correctlu). In a real example, this would be wasting
5+
# dimensionlaity of the plot
6+
from matplotlib.matlab import *
7+
8+
N = 150
9+
r = 2*rand(N)
10+
theta = 2*pi*rand(N)
11+
area = 200*r**2*rand(N)
12+
colors = theta
13+
ax = subplot(111, polar=True)
14+
c = scatter(theta, r, c=colors, s=area)
15+
c.set_alpha(0.75)
16+
17+
#savefig('polar_test2')
18+
show()

0 commit comments

Comments
 (0)