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

Skip to content

Commit 64dfd4a

Browse files
committed
minor cleanup in collections_demo.py
1 parent 9c2724c commit 64dfd4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/api/collections_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
npts = 100
2727

2828
# Make some spirals
29-
r = np.array(range(nverts))
30-
theta = np.array(range(nverts))*(2*np.pi)/(nverts - 1)
29+
r = np.arange(nverts)
30+
theta = np.linspace(0, 2*np.pi, nverts)
3131
xx = r * np.sin(theta)
3232
yy = r * np.cos(theta)
3333
spiral = list(zip(xx, yy))

0 commit comments

Comments
 (0)