Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6e41274

Browse filesBrowse files
committed
bug fixes on scatter_profile.py
1 parent 070a839 commit 6e41274
Copy full SHA for 6e41274

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎examples/pylab_examples/scatter_profile.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/scatter_profile.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
for N in (20, 100, 1000, 10000, 50000):
1616
tstart = time.time()
17-
x = 0.9*np.rand(N)
18-
y = 0.9*np.rand(N)
19-
s = 20*np.rand(N)
17+
x = 0.9*np.random.random(N)
18+
y = 0.9*np.random.random(N)
19+
s = 20*np.random.random(N)
2020
plt.scatter(x, y, s)
2121
print('%d symbols in %1.2f s' % (N, time.time() - tstart))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.